/* 알아듣개냥 스타일 — J안(잉크 네이비 + 노랑 + 코랄). 사양: docs/design-spec-J-v0.1.md */
:root {
  --ink: #14213d; --paper: #fffbf3; --yellow: #ffc23d; --coral: #ff6b4a;
  --line: #e6dfcf; --muted: #5a6580; --soft-yellow: #ffe9b8; --soft-blue: #e8eefb;
  --do-bg: #cdebdd; --do-ink: #0b5238; --do-icon: #0f6b4c;
  --dont-bg: #ffd3c8; --dont-ink: #8e2411; --dont-icon: #b6361c;
  --card: #fff; --r-card: 24px; --r-btn: 18px;
  --font-title: "Do Hyeon", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", system-ui, -apple-system, "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink-text, var(--ink));
  font: 400 16px/1.65 var(--font-body); padding-bottom: 76px;
}
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 32px; } h2 { font-size: 24px; } h3 { font-size: 19px; }
p { margin: 0 0 .8em; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* 상단 바 */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-title); font-size: 24px; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; }
.logo-mark svg { width: 20px; height: 20px; }
.logo .dot { color: var(--coral); }
.species { font-size: 13px; background: var(--soft-blue); border-radius: 22px; padding: 4px 10px; }
.nav { display: none; gap: 6px; }
.nav a { text-decoration: none; padding: 8px 16px; border-radius: 22px; font-weight: 500; }
.nav a[aria-current="page"] { background: var(--soft-yellow); font-weight: 700; }
.nav a:hover { background: var(--soft-blue); }

/* 하단 탭바(모바일·태블릿) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); display: flex; height: 62px; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: #c8d0e4; text-decoration: none; font-size: 12px; font-weight: 500; min-height: 44px; }
.tabbar a .ti { font-size: 20px; line-height: 1; }
.tabbar a[aria-current="page"] { color: var(--yellow); font-weight: 700; }

/* 버튼, 칩 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 28px; border-radius: var(--r-btn); border: 0; font-weight: 700; font-size: 17px; text-decoration: none; background: var(--ink); color: #fff; }
.btn.yellow { background: var(--yellow); color: var(--ink); }
.btn.ghost { background: transparent; color: inherit; border: 2px solid var(--line); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 22px; background: var(--soft-blue); font-size: 14px; text-decoration: none; border: 2px solid transparent; }
a.chip:hover, button.chip:hover { border-color: var(--ink); }
button.chip { cursor: pointer; font-family: inherit; color: inherit; }
button.chip[aria-pressed="true"] { background: var(--ink); color: var(--yellow); font-weight: 700; }

/* 카드 */
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.card + .card { margin-top: 12px; }
.card.yellow { background: var(--soft-yellow); border-color: transparent; }
.card.blue { background: var(--soft-blue); border-color: transparent; }
.safety { background: var(--soft-yellow); border-radius: 18px; padding: 14px 16px; margin: 12px 0; display: flex; gap: 10px; }
.do, .dont { border-radius: 22px; padding: 18px 20px; }
.do { background: var(--do-bg); color: var(--do-ink); } .do h3 { color: var(--do-icon); }
.dont { background: var(--dont-bg); color: var(--dont-ink); } .dont h3 { color: var(--dont-icon); }
.do h3, .dont h3 { font-size: 17px; margin-bottom: .3em; }
.do p, .dont p { margin: 0; font-weight: 500; }

main { min-height: 60vh; padding-bottom: 24px; }
.page-head { padding: 24px 0 8px; }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.crumb a { color: inherit; }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-head a { font-size: 14px; }

/* 홈 */
.hero { background: var(--ink); color: #fff; border-radius: 32px; padding: 28px 22px 26px; margin-top: 16px; display: grid; gap: 8px; overflow: hidden; }
.hero h1 { font-size: 34px; color: #fff; }
.hero p { color: #d6dcec; margin-bottom: 18px; }
.hero .art { background: var(--yellow); border-radius: 50%; width: 190px; height: 190px; display: grid; place-items: center; margin: 4px auto 6px; }
.hero .art .dog { width: 150px; height: 150px; }
.hero .cta { justify-self: stretch; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.hscroll .qcard { flex: 0 0 78%; scroll-snap-align: start; }
.qcard { background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 16px 18px; display: block; text-decoration: none; }
.qcard h3 { font-size: 17px; margin-bottom: .3em; }
.qcard p { margin: 0; font-size: 15px; color: var(--muted); }
.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.sit { display: block; text-decoration: none; background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 16px; min-height: 108px; }
.sit .ic { font-size: 28px; line-height: 1; margin-bottom: 8px; }
.sit b { display: block; } .sit span { font-size: 14px; color: var(--muted); }
.diff { background: var(--soft-blue); border-radius: 26px; padding: 22px 20px; display: grid; gap: 14px; }
.diff h2 { margin: 0; font-size: 22px; }
.diff dt { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.diff dd { margin: 2px 0 0 28px; color: var(--muted); }
.diff dl { margin: 0; display: grid; gap: 12px; }
.check-ic { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: inline-grid; place-items: center; font-size: 12px; flex: 0 0 20px; }

/* 해석기 */
.progress { display: flex; gap: 6px; margin: 16px 0; }
.progress i { flex: 1; height: 8px; border-radius: 8px; background: var(--line); }
.progress i.on { background: var(--ink); } .progress i.cur { background: var(--yellow); outline: 2px solid var(--ink); }
.check-layout { display: grid; gap: 20px; padding-bottom: 84px; }
.q-title { font-size: 28px; margin-bottom: 4px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.opt { position: relative; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 12px 12px 14px; min-height: 56px; display: flex; flex-direction: column; gap: 4px; }
.opt .pic { height: 86px; display: grid; place-items: center; background: var(--soft-yellow); border-radius: 16px; margin-bottom: 4px; }
.opt .pic svg { height: 78px; width: auto; max-width: 100%; }
.opt .pic .em { font-size: 40px; }
.opt b { font-size: 15px; line-height: 1.35; }
.opt small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.opt[aria-pressed="true"] { background: var(--yellow); border-color: var(--ink); border-width: 3px; padding: 11px 11px 13px; color: var(--ink); }
.opt[aria-pressed="true"] small { color: #3a3a2e; }
.opt[aria-pressed="true"] .pic { background: #fff5d9; }
.opt .tick { display: none; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--yellow); place-items: center; font-size: 14px; }
.opt[aria-pressed="true"] .tick { display: grid; }
.opt.unknown .pic { background: var(--soft-blue); }
.opt.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; }
.opt.wide .pic { height: 52px; width: 64px; flex: 0 0 64px; margin: 0; }
.opt.wide .pic .em { font-size: 28px; }
.q-actions { position: fixed; left: 0; right: 0; bottom: 62px; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 10px; z-index: 25; }
.q-actions .btn { flex: 1; }
.q-actions .btn.ghost { flex: 0 0 auto; }
.side { background: var(--card); border: 2px solid var(--line); border-radius: 24px; padding: 18px; }
.side h3 { font-size: 17px; }
.picked { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.picked li { font-size: 14px; display: flex; gap: 8px; } .picked li span:first-child { color: var(--muted); min-width: 52px; }
.notice { background: var(--soft-blue); border-radius: 18px; padding: 14px 16px; margin: 12px 0; }
.start-card { text-align: center; padding: 28px 18px; }
.start-card .dog { width: 130px; height: 130px; }

/* 결과 */
.banner { background: var(--dont-icon); color: #fff; border-radius: 18px; padding: 14px 16px; font-weight: 700; margin: 12px 0; position: sticky; top: 64px; z-index: 10; }
.result-top { background: var(--ink); color: #fff; border-radius: 32px; padding: 24px 20px 22px; margin-top: 12px; text-align: center; }
.result-top .label { color: #c8d0e4; font-size: 14px; }
.result-top h1 { color: var(--yellow); font-size: 36px; margin: 2px 0 10px; }
.result-top .art { background: var(--yellow); border-radius: 50%; width: 170px; height: 170px; margin: 0 auto 14px; display: grid; place-items: center; }
.result-top .art .dog { width: 138px; height: 138px; }
.result-top .art .dog-body { width: 150px; height: auto; }
.bar { display: flex; gap: 4px; max-width: 360px; margin: 0 auto 10px; }
.bar i { flex: 1; height: 12px; border-radius: 6px; background: #3a4a70; }
.bar i.on { background: var(--c); }
.bar i.cur { outline: 3px solid #fff; outline-offset: 1px; }
.result-top .second { color: #d6dcec; font-size: 15px; }
.result-top .why { color: #e8ecf6; margin: 10px auto 0; max-width: 520px; font-size: 15px; }
.result-body { display: grid; gap: 12px; margin-top: 12px; }
.cand { display: flex; gap: 12px; align-items: center; }
.cand .em { font-size: 30px; }
details.acc { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 0 18px; }
details.acc + details.acc { margin-top: 8px; }
details.acc summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "▾"; transition: transform .15s; }
details.acc[open] summary::after { transform: rotate(180deg); }
details.acc .acc-body { padding: 0 0 16px; }
.src-list { margin: 0; padding-left: 18px; font-size: 14px; }
.ad-slot { border: 2px dashed var(--line); border-radius: 18px; min-height: 90px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.actions .btn { flex: 1 1 160px; }

/* 사전 */
.search { width: 100%; min-height: 52px; border: 2px solid var(--line); border-radius: 18px; padding: 0 16px; font: inherit; background: var(--card); color: inherit; }
.sig-list { display: grid; gap: 10px; margin-top: 14px; }
.sig { display: flex; gap: 14px; align-items: center; text-decoration: none; background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 12px 14px; min-height: 76px; }
.sig .thumb { flex: 0 0 64px; height: 64px; background: var(--soft-yellow); border-radius: 16px; display: grid; place-items: center; }
.sig .thumb svg { height: 52px; width: auto; max-width: 58px; }
.sig b { display: block; line-height: 1.35; } .sig span { color: var(--muted); font-size: 14px; }
.sig .go { margin-left: auto; color: var(--muted); }
.part-title { margin: 22px 0 8px; font-size: 18px; }
.detail-top { background: var(--yellow); color: var(--ink); border-radius: 32px; padding: 22px 20px; margin-top: 12px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.detail-top .art { background: #fff5d9; border-radius: 50%; width: 150px; height: 150px; display: grid; place-items: center; }
.detail-top .art svg { width: 120px; height: auto; max-height: 120px; }
.detail-top h1 { margin: 0; } .detail-top p { margin: 0; }
.detail-grid { display: grid; gap: 12px; margin-top: 12px; }
.badge { display: inline-block; border-radius: 22px; padding: 2px 12px; font-size: 13px; font-weight: 700; background: var(--ink); color: var(--yellow); }
.badge.b { background: #55607e; color: #fff; } .badge.c { background: #a08a56; color: #fff; }
.rel a { margin: 0 6px 6px 0; }

/* 읽는 법 */
.hub { display: grid; gap: 12px; margin-top: 12px; }
.hub a { text-decoration: none; background: var(--card); border: 2px solid var(--line); border-radius: 26px; padding: 22px 20px; display: block; }
.hub a .em { font-size: 34px; display: block; margin-bottom: 6px; }
.hub a h3 { margin: 0 0 .2em; }
.hub a p { margin: 0; color: var(--muted); }
.ladder { list-style: none; margin: 14px 0; padding: 0 0 0 4px; display: grid; gap: 0; }
.ladder > li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 14px; position: relative; }
.ladder > li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 3px; background: var(--line); }
.ladder > li:last-child::before { display: none; }
.ladder .lv { width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; text-shadow: 0 0 2px rgba(0,0,0,.45); }
.ladder .box { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 14px 16px; }
.ladder .box h3 { font-size: 18px; margin-bottom: .2em; }
.mini { display: grid; gap: 8px; margin-top: 10px; }
.mini div { border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.mini .do, .mini .dont { padding: 10px 12px; }

footer.site { border-top: 1px solid var(--line); padding: 22px 0 28px; margin-top: 32px; font-size: 14px; color: var(--muted); }
footer.site .disc { background: var(--soft-yellow); color: var(--ink); border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; }
footer.site a { margin-right: 14px; }
noscript .notice { margin: 16px; }

/* 태블릿 641~1023 */
@media (min-width: 641px) {
  h1 { font-size: 40px; } h2 { font-size: 28px; }
  .wrap { padding: 0 28px; }
  .hero { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 40px 36px; }
  .hero .art { width: 260px; height: 260px; margin: 0; justify-self: center; order: 2; }
  .hero .art .dog { width: 210px; height: 210px; }
  .hero .cta { justify-self: start; min-width: 240px; }
  .hscroll { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .hscroll .qcard { flex: none; }
  .grid.two { grid-template-columns: repeat(4, 1fr); }
  .diff { grid-template-columns: 1fr; }
  .diff dl { grid-template-columns: repeat(3, 1fr); }
  .options { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .opt .pic { height: 108px; } .opt .pic svg { height: 98px; }
  .result-body.two { grid-template-columns: 1fr 1fr; }
  .sig-list { grid-template-columns: 1fr 1fr; }
  .hub { grid-template-columns: 1fr 1fr; }
}

/* PC 1024+ */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .nav { display: flex; }
  .hero h1 { font-size: 58px; }
  .hero { padding: 56px 56px; border-radius: 40px; margin-top: 24px; }
  .hero .art { width: 340px; height: 340px; } .hero .art .dog { width: 280px; height: 280px; }
  .home-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; }
  .hscroll { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr 1fr; }
  .diff { grid-template-columns: 220px 1fr; align-items: center; }
  .check-layout { padding-bottom: 0; grid-template-columns: 1fr 320px; align-items: start; gap: 32px; }
  .options { grid-template-columns: repeat(2, 1fr); }
  .opt .pic { height: 120px; } .opt .pic svg { height: 110px; }
  .q-actions { position: static; border: 0; padding: 0; background: none; }
  .q-actions .btn { flex: 0 0 auto; min-width: 160px; }
  .q-actions .btn.ghost { flex: 0 0 auto; }
  .result-cols { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; margin-top: 12px; }
  .result-top h1 { font-size: 52px; }
  .detail-cols { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
  .sig-list { grid-template-columns: repeat(3, 1fr); }
  .hub { grid-template-columns: repeat(4, 1fr); }
  .detail-top { grid-template-columns: 180px 1fr; text-align: left; justify-items: start; align-items: center; padding: 32px 40px; gap: 28px; }
  .detail-top .art { width: 170px; height: 170px; }
  .sticky-side { position: sticky; top: 76px; }
  .hscroll .qcard h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* 결과: 이렇게 읽었어요 */
.read { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.read li { border-top: 1px solid var(--line); padding-top: 10px; }
.read li:first-child { border-top: 0; padding-top: 0; }
.read-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.read p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.tag { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 22px; background: var(--soft-blue); white-space: nowrap; }
.tag-support { background: var(--do-bg); color: var(--do-ink); }
.tag-part { background: var(--soft-yellow); }
.tag-second { background: var(--soft-blue); }
.tag-other { background: var(--dont-bg); color: var(--dont-ink); }
.items { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-weight: 500; }
.do .items, .dont .items { font-weight: 500; }
.mini .items { font-size: 14px; gap: 4px; }
.respond { display: grid; gap: 10px; }
.respond h3 { margin: 0; }
.respond .do, .respond .dont { padding: 14px 16px; border-radius: 18px; }
.respond .items { margin-top: 6px; font-size: 15px; }
.answer { font-size: 17px; margin-top: 0; }
.oneliner { background: var(--soft-yellow); border-radius: 14px; padding: 10px 14px; margin: 8px 0 12px; }
.cmp { display: grid; gap: 10px; margin: 12px 0; }
.cmp .do, .cmp .dont { padding: 12px 16px; border-radius: 18px; }
.cmp .items { margin-top: 6px; font-size: 15px; }
.try { background: var(--soft-blue); border-radius: 18px; padding: 12px 16px; margin: 12px 0; }
.try .items { margin-top: 6px; font-size: 15px; }
@media (min-width: 641px) { .cmp { grid-template-columns: 1fr 1fr; } }
details.acc { scroll-margin-top: 72px; }
.steps { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.steps p { margin: 2px 0 0; }

/* 병원 찾기 버튼 */
.finder { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; margin: 12px 0; }
.finder p { margin: 4px 0 8px; }
.finder .actions { margin-top: 6px; }

/* 글(칼럼) */
.art-list { display: grid; gap: 12px; margin-top: 10px; }
.art-card { display: block; background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 16px 18px; text-decoration: none; color: inherit; }
.art-card:hover { border-color: var(--ink); }
.art-card b { font-size: 18px; line-height: 1.4; display: block; }
.art-card p { margin: 6px 0 8px; color: var(--muted); font-size: 15px; }
.article { max-width: 760px; margin: 0 auto; }
.article .kicker { color: var(--muted); font-size: 14px; font-weight: 700; margin-top: 6px; }
.article h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.3; margin: 6px 0 10px; }
.article .byline { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.article .lede { font-size: 18px; line-height: 1.7; background: var(--soft-yellow); border-radius: 18px; padding: 14px 18px; margin: 0 0 18px; }
.toc { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 14px 18px; margin: 0 0 18px; }
.toc ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.prose { font-size: 17px; line-height: 1.85; }
.prose h2 { font-size: 24px; margin: 34px 0 10px; line-height: 1.4; scroll-margin-top: 80px; }
.prose h3 { font-size: 19px; margin: 24px 0 6px; scroll-margin-top: 80px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.prose blockquote { margin: 16px 0; padding: 12px 18px; border-left: 5px solid var(--yellow); background: var(--soft-yellow); border-radius: 0 14px 14px 0; }
.prose blockquote p { margin: 0; }
.prose img { max-width: 100%; height: auto; border-radius: 16px; }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 28px 0; }
.art-sources { margin-top: 28px; }
.art-sources ul { padding-left: 20px; display: grid; gap: 6px; }

/* 함께 있을 때 읽기 */
.home-card { margin: 14px 0; }
.home-card h3 { margin: 0 0 8px; }
.home-cell { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.home-m { padding-left: 18px; margin: 6px 0; }
.home-m li { margin: 6px 0; }
.home-m .badge { margin-left: 6px; }
.home-group { margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }

.start-choices { display: grid; gap: 12px; margin: 16px 0; text-align: left; }
.start-choice { background: var(--soft-yellow); border-radius: 18px; padding: 16px; }
.start-choice h3 { margin: 0 0 6px; }
.start-choice p { margin: 0 0 12px; }
@media (min-width: 720px) { .start-choices { grid-template-columns: 1fr 1fr; } }

.home-group-h { font-size: 15px; margin: 18px 0 4px; color: var(--muted); }
.home-sum { background: var(--soft-blue); border-radius: 16px; padding: 10px 12px; margin: 10px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.home-sum b { font-size: 13px; margin-right: 4px; }
.home-sum .chip { min-height: 30px; font-size: 13px; background: var(--card); }
.home-acc { border: 2px solid var(--line); border-radius: 18px; margin: 10px 0; background: var(--card); overflow: hidden; }
.home-acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; font: inherit; font-weight: 700; background: transparent; border: 0; cursor: pointer; text-align: left; color: inherit; }
.home-acc-body { padding: 4px 14px 14px; }

.options.compact { gap: 8px; margin: 8px 0; }
.options.compact .opt { padding: 8px 8px 10px; min-height: 0; }
.options.compact .opt .pic { height: 52px; margin-bottom: 2px; }
.options.compact .opt .pic .em { font-size: 28px; }
.options.compact .opt b { font-size: 14px; }
@media (min-width: 720px) { .options.compact { grid-template-columns: repeat(4, 1fr); } .options.compact .opt .pic { height: 60px; } }

.card.review { background: var(--soft-yellow); border-color: transparent; }
.card.review h3 { margin: 0 0 8px; }
.card.review .review-head { font-size: 17px; margin: 0 0 10px; }
.card.review ul { margin: 4px 0 10px; padding-left: 18px; }

/* 고양이 사전: 일러스트 대신 부위 아이콘 */
.sig .thumb .emo { font-size: 32px; line-height: 1; color: inherit; }
.detail-top .art .emo-big { font-size: 64px; line-height: 1; }
/* 신호 사전 위쪽: 강아지/고양이를 크게 나눠 고르는 버튼 */
.species-big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 16px; }
.sp-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 18px 8px; border-radius: 24px; text-decoration: none; border: 3px solid transparent; font-family: var(--font-title); font-size: 22px; line-height: 1.2; text-align: center; min-height: 112px; }
.sp-btn .sp-ic { font-size: 40px; line-height: 1; }
.sp-dog { background: #ffe9b8; color: #14213d; border-color: #ffc23d; }
.sp-dog.on { background: #ffc23d; border-color: #14213d; box-shadow: 0 4px 0 #14213d; }
.sp-cat { background: #ebe4ff; color: #2d1b69; border-color: #b9a6ff; }
.sp-cat.on { background: #6f4fe0; color: #fff; border-color: #2d1b69; box-shadow: 0 4px 0 #2d1b69; }
.sp-btn:not(.on) { opacity: .85; }
@media (max-width: 380px) { .sp-btn { font-size: 19px; padding: 14px 6px; } }

/* 글 목록: 강아지·고양이 글을 같은 줄에 나란히 */
.art-cols { display: block; }
@media (min-width: 900px) { .art-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; } }

/* ---------- 카드 디자인 v2 (design-taste-frontend 시안, 2026-10-19) ----------
   원칙: 포인트색은 에메랄드 하나, 카드 둥글기는 14px 하나, 글 목록은 상자 없이 선과 여백, 아이콘은 Phosphor */
:root { --accent: #0b7a57; --accent-ic: #0f9b6e; --accent-soft: #e3f4ee; --line2: #d6d9de; --r-card2: 14px; }
.ph { line-height: 1; }
.art-list { gap: 0; margin-top: 6px; }
.art-card { background: none; border: 0; border-top: 1px solid var(--line2); border-radius: 0; padding: 18px 0; }
.art-card:hover { border-color: var(--line2); }
.art-card:hover b { color: var(--accent); }
.art-card .ic { display: block; color: var(--accent-ic); font-size: 20px; margin-bottom: 6px; }
.art-card b { font-size: 18px; letter-spacing: -.01em; }
.art-card p { max-width: 62ch; line-height: 1.65; }
.qcard { border: 1px solid var(--line2); border-radius: var(--r-card2); padding: 18px 20px; }
.qcard:hover h3 { color: var(--accent); }
.hscroll .qcard:first-child { background: var(--accent); border-color: var(--accent); }
.hscroll .qcard:first-child h3 { color: #fff; }
.hscroll .qcard:first-child p { color: #e7fff6; }
.hscroll .qcard:first-child:hover h3 { color: #fff; }
.sit { border: 1px solid var(--line2); border-radius: var(--r-card2); display: flex; flex-direction: column; justify-content: space-between; min-height: 128px; }
.sit .ic { font-size: 26px; color: var(--accent-ic); margin-bottom: 12px; }
.sit .ic .ph { font-size: 28px; }
.grid.two .sit:nth-child(2) { background: var(--ink); border-color: var(--ink); color: #fff; }
.grid.two .sit:nth-child(2) span { color: #c9d0e0; }
.grid.two .sit:nth-child(2) .ic { color: #5fe0b5; }
.sig { border: 0; border-top: 1px solid var(--line2); border-radius: 0; background: none; padding: 14px 4px; min-height: 0; }
.sig:hover b { color: var(--accent); }
.sig .thumb { flex: 0 0 56px; height: 56px; background: var(--accent-soft); border-radius: 10px; }
.sig .thumb svg { height: 44px; }
.sig .thumb .ph { font-size: 28px; color: var(--accent-ic); }
.sig-list { gap: 0 18px; }

/* ---------- 홈 화면 Swiss 시안 (Ilm-Alan/frontend-design, 2026-10-19) ----------
   원칙: 흰 배경, 포인트색 스위스 레드 하나, 1px 헤어라인, 좌측 정렬, 숫자를 구도의 요소로. 홈(.sw) 안에서만 적용 */
.sw { --sw-ink: #16171a; --sw-red: #E4002B; --sw-line: #d9dadd; letter-spacing: -.01em; }
.sw h1, .sw h2, .sw h3 { font-family: inherit; font-weight: 800; letter-spacing: -.03em; }
.sw .hero { background: none; color: var(--sw-ink); border-radius: 0; margin-top: 0; padding: 0; gap: 0; display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--sw-ink); overflow: visible; }
.sw .hero h1 { color: var(--sw-ink); font-size: 34px; line-height: 1.2; letter-spacing: -.04em; }
.sw .hero p { color: #44474d; }
.sw .hero .hl { padding: 32px 0; }
.sw .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sw .btn.cta { background: #fff; color: var(--sw-ink); border: 1px solid var(--sw-ink); border-radius: 0; box-shadow: none; min-width: 0; justify-self: auto; display: inline-flex; gap: 8px; align-items: center; padding: 12px 18px; font-weight: 700; }
.sw .btn.cta.p { background: var(--sw-red); border-color: var(--sw-red); color: #fff; }
.sw .nums { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--sw-ink); }
.sw .nums > div { padding: 24px 20px; border-bottom: 1px solid var(--sw-ink); font-size: 13px; color: #44474d; }
.sw .nums > div:nth-child(even) { border-right: 1px solid var(--sw-ink); }
.sw .nums > div:nth-last-child(-n+2) { border-bottom: 0; }
.sw .nums b { display: block; font-size: 56px; line-height: 1; letter-spacing: -.05em; color: var(--sw-ink); font-weight: 800; margin-bottom: 8px; font-feature-settings: "tnum"; }
.sw .nums > div:nth-child(2) b { color: var(--sw-red); }
.sw .nums .chars { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; padding: 0; border-right: 0 !important; }
.sw .chars figure { margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.sw .chars figure + figure { border-left: 1px solid var(--sw-ink); }
.sw .chars svg { width: 104px; height: 104px; }
.sw .chars figcaption { font-size: 13px; font-weight: 700; color: var(--sw-ink); }
.sw .section { margin-top: 0; padding-top: 30px; }
.sw .section-head { border-top: 1px solid var(--sw-ink); padding-top: 12px; margin-bottom: 6px; }
.sw .section-head h2 { font-size: 15px; font-weight: 700; margin: 0; }
.sw .section-head a { font-size: 13px; color: var(--sw-red); }
.sw .hscroll { display: block; overflow: visible; counter-reset: sw; }
.sw .qcard, .sw .hscroll .qcard:first-child { counter-increment: sw; display: block; position: relative; padding: 16px 0 16px 58px; border: 0; border-bottom: 1px solid var(--sw-line); border-radius: 0; background: none; min-width: 0; width: auto; }
.sw .qcard::before { content: counter(sw, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-size: 30px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--sw-ink); }
.sw .qcard h3, .sw .hscroll .qcard:first-child h3 { color: var(--sw-ink); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.sw .qcard p, .sw .hscroll .qcard:first-child p { color: #44474d; line-height: 1.65; }
.sw .qcard:hover h3 { color: var(--sw-red); }
.sw .grid.two { gap: 0; border-left: 1px solid var(--sw-line); border-top: 1px solid var(--sw-line); }
.sw .sit, .sw .grid.two .sit:nth-child(2) { background: #fff; color: var(--sw-ink); border: 0; border-right: 1px solid var(--sw-line); border-bottom: 1px solid var(--sw-line); border-radius: 0; }
.sw .grid.two .sit:nth-child(2) span { color: #44474d; }
.sw .sit .ic, .sw .grid.two .sit:nth-child(2) .ic { color: var(--sw-red); }
.sw .art-card { border-top: 0; border-bottom: 1px solid var(--sw-line); padding: 16px 0; }
.sw .art-card .ic { color: var(--sw-red); }
.sw .art-card:hover b { color: var(--sw-red); }
.sw .art-list { margin-top: 0; }
.sw .chip { border-radius: 0; }
@media (min-width: 900px) {
  .sw .hero { grid-template-columns: 7fr 5fr; }
  .sw .hero .hl { padding: 44px 32px 44px 0; border-right: 1px solid var(--sw-ink); }
  .sw .hero h1 { font-size: 46px; }
  .sw .nums { border-top: 0; }
  .sw .nums b { font-size: 64px; }
}
body:has(.sw) { background: #fff; }

/* ---------- 사이트 전체 Swiss 통일 (1~2단계: 공통 값, 헤더, 하단 내비, 푸터) ----------
   홈에서 확정한 방식을 모든 페이지의 공통 값으로 올린다. 상태 색(편안·주의·병원, do/dont)은 의미 색이라 그대로 둔다. */
:root {
  --paper: #fff; --line: #d9dadd; --muted: #44474d; --soft-blue: #f1f2f4; --soft-yellow: #f1f2f4;
  --sw-red: #E4002B; --r-card: 0px; --r-btn: 0px;
  --font-title: "Pretendard", "Noto Sans KR", sans-serif;
  --font-body: "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Malgun Gothic", sans-serif;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -.03em; }
:focus-visible { outline-color: var(--sw-red); }
.topbar { border-bottom: 1px solid var(--ink); }
.logo { font-weight: 800; letter-spacing: -.03em; }
.logo-mark { border-radius: 0; }
.logo-mark svg path { stroke: var(--sw-red); }
.logo .dot { color: var(--sw-red); }
.species { background: none; border: 1px solid var(--ink); border-radius: 0; }
.nav { gap: 22px; }
.nav a { padding: 8px 0; border-radius: 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { background: none; color: var(--sw-red); border-bottom-color: var(--sw-red); }
.nav a:hover { background: none; color: var(--sw-red); }
.tabbar { background: #fff; border-top: 1px solid var(--ink); }
.tabbar a { color: var(--muted); }
.tabbar a[aria-current="page"] { color: var(--sw-red); }
.btn.yellow { background: var(--sw-red); color: #fff; }
.btn.ghost { border: 1px solid var(--ink); }
.chip { border-radius: 0; border: 1px solid var(--line); background: #fff; }
a.chip:hover, button.chip:hover { border-color: var(--ink); }
button.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.card { border: 1px solid var(--line); }
.card.yellow, .card.blue, .safety { background: var(--soft-blue); border-radius: 0; }
footer.site { border-top: 1px solid var(--ink); }
footer.site .disc { background: var(--soft-blue); border-radius: 0; }
footer.site a { color: var(--sw-red); }
/* 2단계 보충: 직접 지정돼 있던 둥근 모서리와 색을 같은 규칙으로 */
.sp-btn { border-radius: 0; border: 1px solid var(--ink); font-weight: 800; letter-spacing: -.03em; }
.sp-dog, .sp-cat { background: #fff; color: var(--ink); border-color: var(--ink); }
.sp-dog.on, .sp-cat.on { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.sp-btn:not(.on) { opacity: 1; }
.search { border: 1px solid var(--ink); border-radius: 0; }
.opt, .side, details.acc, .hub a, .diff { border-radius: 0; border: 1px solid var(--line); }
.diff { background: var(--soft-blue); border-color: transparent; }
.opt .pic { border-radius: 0; background: var(--soft-blue); }
.badge { border-radius: 0; background: var(--ink); color: #fff; }
.do, .dont { border-radius: 0; }
.start-choice { border-radius: 0; }
:root { --accent: #E4002B; --accent-ic: #E4002B; --accent-soft: #f1f2f4; }
.lede, nav.toc, .notice { border-radius: 0; } nav.toc, .notice { border: 1px solid var(--line); }
/* 3~4단계: 글 본문·해석기 화면 */
.progress i { border-radius: 0; height: 6px; }
.progress i.cur { background: var(--sw-red); outline: 0; }
.result-top { background: #fff; color: var(--ink); border: 1px solid var(--ink); border-radius: 0; text-align: left; }
.result-top .label, .result-top .second { color: var(--muted); }
.result-top h1 { color: var(--ink); }
.result-top .why { color: var(--ink); margin-left: 0; }
.result-top .art { background: var(--soft-blue); border-radius: 0; margin-left: 0; }
.tag, .finder, .ad-slot { border-radius: 0; }
.bar { margin-left: 0; } .bar i { border-radius: 0; background: var(--line); } .bar i.cur { outline-color: var(--ink); }
/* 상세 상단(신호·상황 상세), 해석기 시작 카드 큰 아이콘 */
.detail-top { background: #fff; color: var(--ink); border: 1px solid var(--ink); border-radius: 0; }
.detail-top .art { background: var(--soft-blue); border-radius: 0; }
.detail-top .art .emo-big .ph, .emo-big .ph { font-size: 64px; color: var(--sw-red); }
.emo-big { font-size: 64px; line-height: 1; }
.start-card .emo-big { margin-bottom: 6px; }
.oneliner, .try, .box, .lv, .notice, .check-ic, .tick, .thumb, .sig .thumb { border-radius: 0; }
/* 상황별 카드: 두 번째 카드만 남색이던 것을 모두 같은 흰 카드로, 시작하기 버튼은 검정 */
.grid.two .sit:nth-child(2) { background: var(--card); color: var(--ink); border-color: var(--line); }
.grid.two .sit:nth-child(2) span { color: var(--muted); }
.grid.two .sit:nth-child(2) .ic { color: var(--accent-ic); }
.sit { border-radius: 0; }
.btn.yellow { background: var(--ink); color: #fff; }
/* 시작·해석기 버튼은 따뜻한 초록 계열 */
:root { --btn-blue: #3f7d4e; }
.btn.yellow, .sw .btn.cta.p { background: var(--btn-blue); border-color: var(--btn-blue); color: #fff; }
/* 신호 사전 카드: 부위마다 은은한 색감 (배경은 아주 연하게, 아이콘 칸과 글자는 같은 계열) */
.sig { --t: #f1f2f4; --t2: #44474d; background: color-mix(in srgb, var(--t) 45%, #fff); border-top-color: var(--t); }
.sig .thumb { background: var(--t); }
.sig .thumb .ph { color: var(--t2); }
.sig b { color: var(--t2); filter: brightness(.55); }
.sig.p-ears { --t: #fde6d4; --t2: #b8561f; }
.sig.p-tail { --t: #d9ecdf; --t2: #2f7a4b; }
.sig.p-eyes { --t: #dbe7f7; --t2: #2d5ea8; }
.sig.p-mouth { --t: #fadadf; --t2: #b23a55; }
.sig.p-body { --t: #f3e6c9; --t2: #8a6410; }
.sig.p-sound { --t: #e6dcf5; --t2: #6a43a8; }
.sig.p-owner { --t: #fbe0e7; --t2: #b83a62; }
.sig.p-health { --t: #d6eeee; --t2: #1f7a7a; }
/* 신호 카드 보정: 글씨는 원래대로 검정, 아이콘 칸은 흰색으로 카드 바탕과 구분 */
.sig b { color: var(--ink); filter: none; }
.sig .thumb { background: #fff; }
/* 버튼·카드 마우스 올림 반응 (마우스가 있는 기기에서만) */
.btn, a.chip, button.chip, .opt, .sp-btn, .sig, .sit, .qcard, .hub a, .tabbar a, .nav a, .art-card { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, filter .15s ease; }
@media (hover: hover) {
  .btn:not([disabled]):hover { transform: translateY(-2px); box-shadow: 0 4px 0 rgba(0,0,0,.18); filter: brightness(1.08); }
  .btn.ghost:hover { background: var(--soft-blue); }
  .btn:not([disabled]):active { transform: translateY(0); box-shadow: none; }
  a.chip:hover, button.chip:hover { transform: translateY(-1px); border-color: var(--ink); background: var(--soft-blue); }
  button.chip[aria-pressed="true"]:hover { background: var(--ink); }
  .opt:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 4px 0 rgba(0,0,0,.12); }
  .sp-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 rgba(0,0,0,.2); }
  .sig:hover { transform: translateY(-2px); box-shadow: 0 4px 0 rgba(0,0,0,.08); }
  .sit:hover, .qcard:hover, .hub a:hover { transform: translateY(-2px); border-color: var(--ink); }
  .tabbar a:hover { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .btn, a.chip, button.chip, .opt, .sp-btn, .sig, .sit, .qcard, .hub a { transition: none; transform: none !important; } }
/* 상황별 읽기 카드 색감: 위쪽 굵은 색 띠 + 연한 바탕 (신호 카드의 부드러운 면 색과 구분) */
.grid.two .sit { --c: #c8633a; --cb: #fbece4; background: var(--cb); border-top: 4px solid var(--c); }
.grid.two .sit .ic, .grid.two .sit:nth-child(2) .ic { color: var(--c); }
.grid.two .sit:nth-child(6n+2) { --c: #5b7f3a; --cb: #eef3e4; background: var(--cb); border-color: var(--line); border-top-color: var(--c); }
.grid.two .sit:nth-child(6n+3) { --c: #2f5fa8; --cb: #e6eefa; }
.grid.two .sit:nth-child(6n+4) { --c: #b8860b; --cb: #faf1d9; }
.grid.two .sit:nth-child(6n+5) { --c: #b0405c; --cb: #fae6ec; }
.grid.two .sit:nth-child(6n+6) { --c: #2a7f7a; --cb: #e1f2f0; }
.grid.two .sit:nth-child(6n+2) b, .grid.two .sit:nth-child(6n+2) span { color: var(--ink); }
.grid.two .sit:nth-child(6n+2) span, .grid.two .sit span { color: var(--muted); }
.grid.two .sit { border-left: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid.two .sit:hover { border-color: var(--line); border-top-color: var(--c); }
/* 읽는 법 카드: 왼쪽 굵은 색 띠 + 색 채운 원형 아이콘 (다른 카드와 다른 모양) */
.hub a { --c: #4a4fc4; border: 1px solid var(--line); border-left: 6px solid var(--c); background: #fff; padding: 20px; display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: start; }
.hub a:nth-child(4n+2) { --c: #d9731a; }
.hub a:nth-child(4n+3) { --c: #2f8a5a; }
.hub a:nth-child(4n+4) { --c: #a8408c; }
.hub a .em { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 26px; margin: 0; }
.hub a .em .ph { color: #fff; font-size: 26px; }
.hub a h3 { margin: 2px 0 4px; }
.hub a p { margin: 0; grid-column: 2; }
.hub a:hover { background: color-mix(in srgb, var(--c) 7%, #fff); border-color: var(--line); border-left-color: var(--c); }
/* 읽는 법 카드: 왼쪽 띠 제거 */
.hub a, .hub a:hover { border-left: 1px solid var(--line); }
/* 홈에서 두 번째 카드만 흰색이던 것 보정 (홈 전용 규칙이 더 강해서 덮어쓰던 문제) */
.sw .grid.two .sit:nth-child(6n+2) { --c: #5b7f3a; --cb: #eef3e4; background: var(--cb); color: var(--ink); border: 0; border-top: 4px solid var(--c); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sw .grid.two .sit:nth-child(6n+2) span { color: var(--muted); }
.sw .grid.two .sit:nth-child(6n+2) .ic { color: var(--c); }
/* 부위 칩(홈 신호 사전): 부위마다 색을 입힌 칩, 아래쪽 색 띠로 마무리 */
a.chip[href*="?part="] { --c: #8a8f98; --cb: #f1f2f4; background: var(--cb); border: 1px solid transparent; border-bottom: 3px solid var(--c); min-height: 40px; font-weight: 500; }
a.chip[href*="?part="] .ph { color: var(--c); }
a.chip[href*="?part="]:hover { background: color-mix(in srgb, var(--c) 18%, #fff); border-color: transparent; border-bottom-color: var(--c); }
a.chip[href$="part=ears"] { --c: #c8633a; --cb: #fbece4; }
a.chip[href$="part=tail"] { --c: #3f8a5a; --cb: #e8f3ec; }
a.chip[href$="part=eyes"] { --c: #2f5fa8; --cb: #e6eefa; }
a.chip[href$="part=mouth"] { --c: #b0405c; --cb: #fae6ec; }
a.chip[href$="part=body"] { --c: #b8860b; --cb: #faf1d9; }
a.chip[href$="part=sound"] { --c: #6a43a8; --cb: #eee7f8; }
a.chip[href$="part=calming"] { --c: #5b7f3a; --cb: #eef3e4; }
a.chip[href$="part=sleep"] { --c: #3b4fa0; --cb: #e8ebf8; }
a.chip[href$="part=owner"] { --c: #c04a78; --cb: #fbe3ec; }
a.chip[href$="part=health"] { --c: #2a7f7a; --cb: #e1f2f0; }
:root { --pill: #3f7d4e; }
/* 더 보기·전체 보기 링크: 둥근 알약 + 화살표 */
.section-head a, .sw .section-head a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--pill); text-decoration: none; background: color-mix(in srgb, var(--pill) 9%, #fff); border: 1px solid color-mix(in srgb, var(--pill) 35%, #fff); border-radius: 999px; padding: 6px 14px; white-space: nowrap; transition: background-color .15s ease, color .15s ease, border-color .15s ease, gap .15s ease; }
.section-head a::after, .sw .section-head a::after { content: "→"; font-weight: 700; transition: transform .15s ease; }
@media (hover: hover) {
  .section-head a:hover, .sw .section-head a:hover { background: var(--pill); color: #fff; border-color: var(--pill); }
  .section-head a:hover::after { transform: translateX(3px); }
}

/* 대표 그림(강아지) */
.sw .chars .char-img { width: 104px; height: 104px; object-fit: cover; display: block; }
.start-card .start-img { width: 120px; height: 120px; object-fit: cover; display: block; margin-bottom: 6px; }
.start-card .start-img { margin-left: auto; margin-right: auto; }

/* 부위 그림 카드 (그림이 있는 부위만) */
a.chip.pimg { flex-direction: column; justify-content: flex-start; gap: 4px; padding: 10px 14px 8px; min-height: 0; text-align: center; }
a.chip.pimg img { width: 72px; height: 72px; object-fit: contain; display: block; }

/* 신호 그림 */
.sig .thumb .sig-img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: inherit; }
.detail-top .art .sig-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sig.p-sleep { --t: #e8ebf8; --t2: #3b4fa0; }
.opt .pic .em .sig-img { width: 72px; height: 72px; object-fit: contain; display: block; }

/* 해석기 종 선택 카드 색 */
.sp-btn.sp-dog { background: #FE1198; color: #fff; border-color: #FE1198; }
.sp-btn.sp-cat { background: #58FEDB; color: var(--ink); border-color: #58FEDB; }
.sp-btn.sp-dog.on { background: #FE1198; color: #fff; border-color: var(--ink); }
.sp-btn.sp-cat.on { background: #58FEDB; color: var(--ink); border-color: var(--ink); }

/* 해석기 상황 질문 카드 색 */
.opt.sit-opt, .opt.sit-opt[aria-pressed="true"] { background: linear-gradient(180deg, #90F2EC, #EAF98E); color: var(--ink); }
.opt.sit-opt { border-color: #6fcfc8; }
.opt.sit-opt small, .opt.sit-opt[aria-pressed="true"] small { color: #14213d; }
.opt.sit-opt .pic, .opt.sit-opt[aria-pressed="true"] .pic { background: rgba(255,255,255,.55); }
.opt.sit-opt .tick { background: var(--ink); color: #EAF98E; }

/* 해석기 선택 카드·홈 오해 카드 그림 */
.sp-ic .pick-img { width: 104px; height: 104px; object-fit: contain; display: block; }
.qcard { display: flow-root; }
.qcard .mis-img { float: right; width: 84px; height: 84px; object-fit: contain; margin: 0 0 4px 10px; }
.section h2 .grp-img { width: 56px; height: 56px; object-fit: contain; vertical-align: middle; margin-right: 8px; }

/* 해석기 결과 상태 그림 */
.result-top .art.has-img { width: min(100%, 260px); height: 260px; }
.result-top .art .state-img { width: 240px; height: 240px; object-fit: contain; }

/* 해석기 선택지 카드의 그림을 크게 */
.opt .pic:has(.sig-img) { height: 132px; }
.opt .pic .em .sig-img { width: 100%; height: 124px; max-width: 260px; object-fit: contain; }
.options.compact .opt .pic:has(.sig-img) { height: 92px; }
.options.compact .opt .pic .em .sig-img { height: 84px; width: 100%; }
@media (min-width: 720px) { .opt .pic:has(.sig-img) { height: 150px; } .opt .pic .em .sig-img { height: 142px; } .options.compact .opt .pic:has(.sig-img) { height: 104px; } .options.compact .opt .pic .em .sig-img { height: 96px; } }

button.chip.cimg { flex-direction: column; justify-content: flex-start; gap: 4px; padding: 8px 10px; min-height: 0; width: calc(50% - 4px); text-align: center; }
button.chip.cimg img { width: 100%; height: 96px; object-fit: contain; display: block; }
@media (min-width: 720px) { button.chip.cimg { width: 150px; } button.chip.cimg img { height: 120px; } }
.options:has(.opt.wide .sig-img) { grid-template-columns: 1fr; }
.opt.wide:has(.sig-img) { grid-column: auto; flex-direction: column; align-items: stretch; gap: 6px; padding: 14px 14px 16px; text-align: center; }
.opt.wide:has(.sig-img) .pic { width: auto; flex: none; height: 170px; margin: 0 0 6px; }
.opt.wide:has(.sig-img) .pic .em .sig-img { height: 160px; max-width: 100%; }
.opt.wide:has(.sig-img) b { font-size: 18px; }
.opt.wide:has(.sig-img) small { font-size: 15px; }
@media (min-width: 720px) { .options:has(.opt.wide .sig-img) { grid-template-columns: repeat(3, 1fr); } .opt.wide:has(.sig-img) .pic { height: 200px; } .opt.wide:has(.sig-img) .pic .em .sig-img { height: 190px; } }

.acc > summary:has(.acc-img) { display: flex; align-items: center; gap: 12px; }
.acc > summary .acc-img { width: 72px; height: 72px; flex: 0 0 72px; object-fit: contain; }
.acc > summary:has(.acc-img) > span { flex: 1; }
@media (min-width: 720px) { .acc > summary .acc-img { width: 88px; height: 88px; flex-basis: 88px; } }

.sit .ic .sit-img { width: 52px; height: 52px; object-fit: contain; display: block; }
.sit .ic .sit-img { width: 76px; height: 76px; }
@media (min-width: 720px) { .sit .ic .sit-img { width: 96px; height: 96px; } }
.sw .dict > .section-head h2 { font-size: 22px; }
.sw .dict .section-head h3 { font-size: 15px; }
.chips:has(> a.chip.pimg) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chips > a.chip.pimg { width: auto; min-width: 0; justify-content: flex-start; }
@media (min-width: 1100px) { .chips:has(> a.chip.pimg) { grid-template-columns: repeat(9, 1fr); } }  /* 부위 9개가 한 줄 또는 3×3으로 딱 맞게 */
@media (min-width: 1024px) {
  .home-cols > div { display: flex; flex-direction: column; }
  .home-cols > div > .section { flex: 1; display: flex; flex-direction: column; margin-bottom: 0; }
  .home-cols .hscroll { flex: 1; display: flex; flex-direction: column; }
  .home-cols .hscroll .qcard { flex: 1; }
}
.sw .home-cols .section-head h2 { font-size: 22px; }
.sw .home-cols .section-head h2 { border-left: 5px solid var(--sw-red); padding-left: 10px; line-height: 1.25; }
.sw .dict > .section-head h2 { color: var(--sw-red); font-weight: 800; letter-spacing: -.02em; }
.sw .home-cols .section-head h2 { border-left: 0; padding-left: 0; }
.sw .dict > .section-head h2 { color: #2f5fa8; }
.sw .dict > .section-head h2 { color: var(--sw-ink); }
.sw .home-cols .section-head h2 { color: #2f5fa8; }
.sw .home-cols .section-head h2 { color: #1f6f4a; }
.sw .dict > .section-head h2 { color: #1f6f4a; }
.sw .home-cols .section-head h2, .sw .dict > .section-head h2 { display: inline-flex; align-items: center; gap: 8px; background: #1f6f4a; color: #fff; padding: 7px 18px 7px 14px; border-radius: 999px; font-size: 17px; box-shadow: 3px 3px 0 #bfe3d1; }
.sw .dict > .section-head h2 { font-size: 20px; padding: 9px 22px 9px 18px; }
/* 홈 구역 제목: 스티커 라벨 (잎 모양 모서리 + 굵은 테두리 + 그림자) */
.sw .home-cols .section-head h2, .sw .dict > .section-head h2 { background: linear-gradient(180deg, #90F2EC, #EAF98E); color: var(--sw-ink); border: 2px solid var(--sw-ink); border-radius: 4px 20px 4px 20px; box-shadow: 4px 4px 0 var(--sw-ink); transform: rotate(-1.2deg); padding: 6px 18px 6px 14px; font-weight: 800; }
.sw .dict > .section-head h2 { padding: 8px 22px 8px 16px; }
/* 홈 구역 제목: 아이콘 배지 + 굵은 글자 (스티커·알약 모양 제거) */
.sw .home-cols .section-head h2, .sw .dict > .section-head h2 { background: none; border: 0; border-radius: 0; box-shadow: none; transform: none; padding: 0; color: var(--sw-ink); display: inline-flex; align-items: center; gap: 10px; font-size: 19px; }
.sw .dict > .section-head h2 { font-size: 22px; }
.sw .home-cols .section-head h2 > i, .sw .dict > .section-head h2 > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #1f6f4a; color: #fff; font-size: 20px; flex: 0 0 36px; }
/* 홈 구역 제목: 키캡 버튼 (흰 바탕 + 초록 테두리 + 두꺼운 아랫선) */
.sw .home-cols .section-head h2, .sw .dict > .section-head h2 { background: #fff; color: #1f6f4a; border: 2px solid #1f6f4a; border-bottom-width: 6px; border-radius: 12px; padding: 7px 18px 5px 14px; gap: 8px; font-size: 18px; font-weight: 800; }
.sw .dict > .section-head h2 { font-size: 21px; padding: 9px 22px 7px 18px; }
.sw .home-cols .section-head h2 > i, .sw .dict > .section-head h2 > i { display: inline; width: auto; height: auto; background: none; color: #1f6f4a; font-size: 1.15em; flex: none; border-radius: 0; }
/* 홈 구역 제목: 형광펜 밑줄 (글자 아래쪽 절반에만 연두 형광펜) */
.sw .home-cols .section-head h2, .sw .dict > .section-head h2 { background: linear-gradient(transparent 58%, #D4F56B 58%); color: var(--sw-ink); border: 0; border-radius: 0; padding: 0 6px 0 2px; gap: 8px; font-size: 20px; font-weight: 800; }
.sw .dict > .section-head h2 { font-size: 24px; }
.sw .home-cols .section-head h2 > i, .sw .dict > .section-head h2 > i { color: var(--sw-ink); }
/* 홈 구역 제목: 화살표 태그 (오른쪽 끝이 뾰족한 진한 남색 라벨) */
.sw .home-cols .section-head h2, .sw .dict > .section-head h2 { background: #14213d; color: #fff; padding: 8px 34px 8px 16px; font-size: 17px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); }
.sw .dict > .section-head h2 { font-size: 20px; padding: 10px 40px 10px 20px; }
.sw .home-cols .section-head h2 > i, .sw .dict > .section-head h2 > i { color: #90F2EC; }
@media (max-width: 719px) {
  .sw .home-cols .section-head h2, .sw .dict > .section-head h2 { font-size: 15px; padding: 6px 26px 6px 12px; gap: 6px; }
  .sw .dict > .section-head h2 { font-size: 17px; padding: 7px 30px 7px 14px; }
  .sw .home-cols .section-head h2 > i { display: none; }
  .sw .home-cols .section-head { gap: 8px; }
}
/* 홈 구역 제목: 폴더 탭 (제목이 탭, 아래 줄이 이어짐) */
.sw .home-cols .section-head, .sw .dict > .section-head { align-items: flex-end; border-top: 0; border-bottom: 3px solid #1f6f4a; padding-top: 0; margin-bottom: 12px; }
.sw .home-cols .section-head h2, .sw .dict > .section-head h2 { clip-path: none; background: #1f6f4a; color: #fff; border-radius: 12px 12px 0 0; padding: 8px 16px 6px; font-size: 16px; }
.sw .dict > .section-head h2 { font-size: 18px; padding: 9px 20px 7px; }
.sw .home-cols .section-head h2 > i, .sw .dict > .section-head h2 > i { color: #fff; display: inline; }
.sw .home-cols .section-head a, .sw .dict > .section-head a { margin-bottom: 6px; }

/* 홈 소개 영역: 달리는 강아지·고양이 (4컷 시트를 steps로 넘김) */
.run-track { grid-column: 1 / -1; position: relative; height: 76px; overflow: hidden; border-top: 1px solid var(--sw-ink); }
.runner { position: absolute; bottom: 4px; left: -30%; display: block; width: 110px; height: 57px; background-size: 400% 100%; background-repeat: no-repeat; animation: run-cycle .5s step-end infinite, run-dash 9s linear infinite; }
.run-dog { background-image: url(/img/run-dog.webp); }
.run-cat { background-image: url(/img/run-cat.webp); width: 96px; height: 49px; animation-duration: .42s, 7s; animation-delay: 0s, -3.5s; }
@keyframes run-cycle { 0% { background-position-x: 0; } 25% { background-position-x: 33.3333%; } 50% { background-position-x: 66.6667%; } 75% { background-position-x: 100%; } }
@keyframes run-dash { from { left: -30%; } to { left: 105%; } }
@media (min-width: 720px) { .run-track { height: 116px; } .runner { width: 180px; height: 93px; } .run-cat { width: 150px; height: 76px; } }
/* 동작 줄이기 기기: 화면을 가로지르지 않고 제자리에서 다리만 움직임 */
@media (prefers-reduced-motion: reduce) { .runner { animation: run-cycle .7s step-end infinite; } .run-dog { left: 20%; } .run-cat { left: 60%; } }
/* 모바일은 '동작 줄이기'가 켜져 있어도 화면을 가로질러 달림 (PC 규칙은 그대로) */
@media (max-width: 719px) and (prefers-reduced-motion: reduce) {
  .runner { animation: run-cycle .5s step-end infinite, run-dash 9s linear infinite; left: -30%; }
  .run-cat { animation-duration: .42s, 7s; animation-delay: 0s, -3.5s; }
}

.sw .btn.cta .btn-ic { width: 40px; height: 40px; object-fit: contain; margin: -6px 2px -6px -8px; }
.sw .btn.cta.cat { background: #FFC93C; border-color: #FFC93C; color: var(--sw-ink); font-weight: 800; }
@media (max-width: 719px) {
  .sw .btn.cta { font-size: 14px; padding: 8px 6px; min-height: 48px; gap: 4px; white-space: nowrap; }
  .sw .btn.cta .btn-ic { width: 30px; height: 30px; margin: -4px 0 -4px -2px; }
}
.sw .btn.cta.cat { background: #6A4BD8; border-color: #6A4BD8; color: #fff; }
@media (max-width: 719px) { .sw .btn.cta { font-size: 16px; } .sw .btn.cta .btn-ic { width: 28px; height: 28px; } }
.sw .btn.cta.cat { background: #fff; border-color: var(--sw-ink); color: var(--sw-ink); font-weight: 700; }

/* 상황별 읽기 상세: 상황 색을 제목 영역과 카드에 입힘 */
.detail-top.sit-themed { background: var(--cb); border: 1px solid var(--line); border-top: 6px solid var(--c); }
.detail-top.sit-themed .art { background: rgba(255,255,255,.7); color: var(--c); }
.detail-top.sit-themed .art .sit-hero-img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8px; }
.detail-top.sit-themed h1 { color: var(--ink); }
.detail-grid.sit-themed .card { border-top: 4px solid var(--c); }
.detail-grid.sit-themed .card h3 { color: var(--c); }
.detail-grid.sit-themed .oneliner { background: var(--cb); border-left: 4px solid var(--c); }
.detail-grid.sit-themed .steps li::marker { color: var(--c); font-weight: 800; }
.detail-grid.sit-themed .steps li > b { color: var(--ink); }
.detail-grid.sit-themed .acc > summary { color: var(--c); }
.detail-top.sit-themed .art { background: var(--cb); }
/* 한글은 단어(띄어쓰기) 단위로 줄바꿈, 너무 긴 덩어리(주소 등)만 강제로 끊음 */
body { word-break: keep-all; overflow-wrap: break-word; line-break: strict; }
p, li, dd, dt, summary, h1, h2, h3, .oneliner, .answer { text-wrap: pretty; }
a[href^="http"], .src-list a { word-break: break-all; }

p.para { margin: 0 0 14px; line-height: 1.8; }
p.para:last-child { margin-bottom: 0; }

.steps li:has(.step-img) { display: flow-root; }
.steps li .step-img { float: right; width: 112px; height: 112px; object-fit: contain; margin: 0 0 6px 12px; }
@media (min-width: 720px) { .steps li .step-img { width: 150px; height: 150px; } }

.blog-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; margin: 4px 0 16px; border-radius: 12px; }
/* 그림(투명 배경)이 들어간 제목 영역은 회색 네모 배경 없이 */
.detail-top .art:has(img) { background: transparent; }
.detail-top .art img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* 해석기 상황 카드: 카드마다 다른 그라데이션 (상황별 읽기 색과 같은 6색) */
.opt.sit-opt, .opt.sit-opt[aria-pressed="true"] { background: linear-gradient(180deg, var(--g1, #90F2EC), var(--g2, #EAF98E)); border-color: var(--gb, #6fcfc8); }
.options .opt.sit-opt:nth-child(6n+1) { --g1: #FFB48A; --g2: #FFE9D6; --gb: #e8956a; }
.options .opt.sit-opt:nth-child(6n+2) { --g1: #A8E08A; --g2: #EEF7C8; --gb: #86c466; }
.options .opt.sit-opt:nth-child(6n+3) { --g1: #8FC2FF; --g2: #DCEBFF; --gb: #6ea3e6; }
.options .opt.sit-opt:nth-child(6n+4) { --g1: #FFD76A; --g2: #FFF3C4; --gb: #e6bb45; }
.options .opt.sit-opt:nth-child(6n+5) { --g1: #FF9EC0; --g2: #FFE0EC; --gb: #e67ea3; }
.options .opt.sit-opt:nth-child(6n+6) { --g1: #7EE6D8; --g2: #D8F7F1; --gb: #5cc7b8; }
.opt.sit-opt .tick { color: #fff; }
/* 그림(투명 배경)이 들어간 선택지는 그림 뒤 네모 배경 없이 */
.opt .pic:has(.sig-img), .opt.sit-opt .pic:has(.sig-img), .opt.sit-opt[aria-pressed="true"] .pic:has(.sig-img), .opt.wide:has(.sig-img) .pic { background: transparent; }
/* 결과 화면·신호 카드: 그림(투명 배경)이 들어간 곳은 뒤 네모 배경 없이 */
.result-top .art.has-img, .sig .thumb:has(.sig-img) { background: transparent; }
.sig .thumb .sig-img { width: 100%; height: 100%; object-fit: contain; }
/* 로고: 노란 바탕 + 남색 선 (시안 A) */
.logo-mark { background: #FFC23D; }
.logo-mark svg path { stroke: var(--ink); }

/* 신호 조합 카드: 색 + 그림 두 장을 '+'로 이어 보여 줌 */
.combo-card { background: var(--cb); border: 1px solid var(--line); border-top: 6px solid var(--c); }
.combo-card h3 { color: var(--c); font-size: 20px; }
.combo-pics { display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(255,255,255,.55); border-radius: 14px; padding: 12px 8px; margin-bottom: 14px; }
.combo-img { width: min(40%, 150px); aspect-ratio: 1; object-fit: contain; }
.combo-plus { font-size: 28px; font-weight: 800; color: var(--c); }
.combo-card .chip { background: #fff; }
.combo-card .acc > summary { color: var(--c); }
@media (min-width: 720px) { .combo-img { width: min(40%, 180px); } }

:root { color-scheme: only light; }


/* 바탕색 두 가지: 연한 회색(기본) / 흰색. 위쪽 바 버튼으로 바꾸고 이 기기에 저장 */
:root { --paper: #f3f4f6; }
:root[data-bg="white"] { --paper: #fff; }
body:has(.sw) { background: var(--paper); }
.bg-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-left: 8px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font-size: 18px; flex: 0 0 36px; }
.bg-toggle:hover { border-color: var(--ink); }
/* 상단 바: 로고 | 메뉴(가운데) | 종 표시 + 바탕색 버튼 */
.topbar .wrap { justify-content: flex-start; }
.topbar .nav { margin: 0 auto; }
.topbar .wrap > .species { margin-left: auto; }
@media (min-width: 1024px) { .topbar .wrap > .species { margin-left: 0; } }
/* 해석기 시작 화면: 종 고르기 카드 + 시작 카드를 상황 카드와 같은 색 카드로 */
.species-big .sp-btn.sp-dog, .species-big .sp-btn.sp-cat { color: var(--ink); border: 1px solid var(--line); border-top: 6px solid var(--c); background: var(--cb); font-size: 22px; font-weight: 800; padding: 22px 12px 18px; gap: 8px; }
.sp-btn.sp-dog { --c: #c8633a; --cb: #fbece4; }
.sp-btn.sp-cat { --c: #2a7f7a; --cb: #e1f2f0; }
.sp-btn.sp-dog:hover, .sp-btn.sp-cat:hover { border-color: var(--line); border-top-color: var(--c); box-shadow: 0 6px 0 rgba(0,0,0,.1); }
.sp-btn .pick-img { width: 120px; height: 120px; object-fit: contain; }
.sp-btn.sp-dog span:last-child, .sp-btn.sp-cat span:last-child { color: var(--c); }
.start-card { border-top: 6px solid #5b7f3a; }
.start-choice { border: 1px solid var(--line); border-top: 5px solid var(--c, #5b7f3a); background: var(--cb, #eef3e4); }
.start-choice:nth-child(1) { --c: #5b7f3a; --cb: #eef3e4; }
.start-choice:nth-child(2) { --c: #2f5fa8; --cb: #e6eefa; }
.start-choice h3 { color: var(--c); font-size: 19px; }
.start-choice p { color: var(--ink); }
.start-choice .btn.yellow { background: var(--c); border-color: var(--c); color: #fff; }

/* 첫해 양육비 계산기 */
.cost-banner { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-card); background: var(--soft-yellow); text-decoration: none; color: inherit; border: 2px solid transparent; }
.cost-banner > i { font-size: 34px; }
.cost-banner b { display: block; font-size: 18px; }
.cost-banner small { display: block; margin-top: 2px; color: var(--muted, #5a6070); font-size: 14px; line-height: 1.5; }
.cost-form { display: grid; gap: 16px; margin-bottom: 12px; }
.cost-form label { display: block; font-weight: 700; }
.cost-form select { display: block; width: 100%; margin-top: 8px; min-height: 50px; padding: 0 12px; font-size: 17px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: inherit; }
.cost-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.cost-form legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.cost-form fieldset label, .cost-form label.chk { font-weight: 500; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.cost-form input[type=radio], .cost-form input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--ink); }
.cost-res h2, .cost-total h2 { margin: 0 0 10px; font-size: 20px; }
.cost-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.cost-row:first-child { border-top: 0; }
.cost-row > div:first-child { min-width: 0; }
.cost-row small { display: block; margin-top: 4px; color: var(--muted, #5a6070); font-size: 13.5px; line-height: 1.55; }
.cost-val { flex: none; font-weight: 800; text-align: right; font-size: 17px; }
.cost-row.sum { background: var(--soft-yellow); margin: 6px -10px 0; padding: 12px 10px; border-radius: 12px; border-top: 0; }
.cost-tier { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 20px; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.cost-tier.t-o { background: var(--ink); color: var(--yellow); }
.cost-tier.t-m { background: #55607e; color: #fff; }
.cost-tier.t-p { background: #a08a56; color: #fff; }
.cost-total { background: var(--soft-yellow); border-color: transparent; margin-top: 12px; }
.cost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cost-grid > div { background: #fff; border-radius: 16px; padding: 14px; }
.cost-grid span { display: block; font-size: 14px; color: var(--muted, #5a6070); }
.cost-grid b { display: block; margin-top: 4px; font-size: 20px; line-height: 1.35; word-break: keep-all; }
@media (max-width: 560px) { .cost-grid { grid-template-columns: 1fr; } .cost-row { flex-direction: column; gap: 6px; } .cost-val { text-align: left; } }
.cost-hint { margin: 4px 2px 12px; } #costGo { width: 100%; }
#costOut { scroll-margin-top: 76px; }
.cost-grid b { font-size: 24px; } .cost-grid small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted, #5a6070); }
.cost-val span { display: block; font-size: 16px; } .cost-val span + span { font-weight: 600; opacity: .85; }
.cost-route { margin-top: 14px; } .cost-route h3 { margin: 0 0 8px; font-size: 16px; }
.cost-avg { color: #c2410c; font-weight: 800; } .cost-val span.cost-avg { opacity: 1; font-weight: 800; }
.cost-grid small .cost-avg { display: inline; color: #c2410c; font-size: inherit; font-weight: 800; }
.cost-grid b .cost-avg { display: inline; font-size: inherit; }
.cost-grid b .cost-avg { color: #c2410c; font-weight: 800; }
.cost-switch { display: flex; gap: 8px; margin: 8px 0 4px; }
.cost-switch a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 22px; border: 2px solid var(--line); text-decoration: none; color: inherit; font-weight: 700; background: #fff; }
.cost-switch a[aria-current="page"] { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.cost-form label small { display: block; margin-top: 6px; font-weight: 400; font-size: 13px; line-height: 1.5; }

/* 신호 카드 링크 칩 · 선택 요약 태그: 밋밋한 네모 대신 왼쪽 포인트 선이 있는 부드러운 카드형 */
a.chip:not(.pimg):not([href*="?part="]) { position: relative; min-height: 40px; padding: 6px 30px 6px 14px; border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.3; box-shadow: 0 1px 2px rgba(20, 25, 40, .06); }
a.chip:not(.pimg):not([href*="?part="])::after { content: "›"; position: absolute; right: 12px; top: 50%; transform: translateY(-52%); font-size: 20px; font-weight: 700; color: #b8860b; line-height: 1; transition: transform .15s ease; }
a.chip:not(.pimg):not([href*="?part="]):hover { background: var(--soft-yellow); border-color: var(--line); border-left-color: var(--yellow); box-shadow: 0 3px 8px rgba(20, 25, 40, .12); }
a.chip:not(.pimg):not([href*="?part="]):hover::after { transform: translate(3px, -52%); }
.chips:has(> a.chip:not(.pimg):not([href*="?part="])) { gap: 10px; }
.home-sum .chip { min-height: 32px; padding: 3px 12px; border: 0; border-left: 4px solid var(--yellow); border-radius: 10px; background: var(--soft-yellow); color: var(--ink); font-weight: 600; font-size: 13.5px; }
.home-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.home-sum > b { margin-right: 4px; }
/* 링크가 아닌 태그 칩(예: 귀·꼬리 요약)도 같은 결로, 눌러서 고르는 칩 버튼은 모서리만 둥글게 */
.chip:not(a):not(button) { min-height: 32px; padding: 3px 12px; border: 0; border-left: 4px solid var(--yellow); border-radius: 10px; background: var(--soft-yellow); color: var(--ink); font-weight: 600; font-size: 13.5px; }
button.chip { border-radius: 12px; }
button.chip[aria-pressed="true"] { color: var(--yellow); }
/* '더 보기' 텍스트 링크: 밑줄 대신 부드러운 버튼형 */
a.more-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px; border-radius: 12px; background: var(--soft-yellow); border: 1px solid transparent; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
a.more-link span { color: #b8860b; font-size: 18px; transition: transform .15s ease; }
a.more-link:hover { background: var(--yellow); }
a.more-link:hover span { color: var(--ink); transform: translateX(3px); }
a.more-link { background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20, 25, 40, .08); }
a.more-link:hover { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 3px 8px rgba(20, 25, 40, .14); }
/* 상태가 바뀔 때 보이는 신호: 제목·문장·칩 사이를 넉넉하게 */
.ladder h3 { margin-bottom: 18px; }
.ladder > p { margin: 0 0 16px; line-height: 1.7; }
.ladder .chips { gap: 12px 10px; }
.ladder > .chips + p { margin-top: 32px !important; }
.ladder > p.muted { margin-top: 26px !important; margin-bottom: 0; }
/* 총평·결과 카드: 소제목·문단·목록·칩 줄 사이 간격을 넉넉하게 */
.card.review .review-head { margin-bottom: 20px; line-height: 1.7; }
.card.review p { line-height: 1.8; margin: 0 0 14px; }
.card.review p.small:not(.muted) { margin: 30px 0 10px; }
.card.review ul { margin: 8px 0 22px; padding-left: 20px; }
.card.review li { line-height: 1.75; margin-bottom: 8px; }
.card.review .safety, .card.review .notice { margin: 22px 0; }
.card p + .chips { margin-top: 14px; }
.card .chips + p { margin-top: 26px; }
.card .chips { row-gap: 12px; }
/* 총평(이야기형): 소제목·목록·한 줄 요약 */
.overall p.rv-h { margin: 30px 0 10px; font-size: 16px; }
.overall .rv-list { margin: 6px 0 22px; padding-left: 22px; }
.overall .rv-list li { line-height: 1.8; margin-bottom: 12px; }
.overall p.rv-one { margin: 30px 0 18px; padding: 14px 18px; background: #fff; border-radius: 12px; border-left: 4px solid var(--yellow); line-height: 1.7; }

/* 경로(breadcrumb): 홈 아이콘 + 글자, 밑줄 없음 */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-bottom: 10px; font-size: 13px; }
.crumb > a, .crumb > span { font-weight: 600; line-height: 1.6; text-decoration: none; }
.crumb > a { color: var(--muted); }
.crumb > a:hover { color: #b07a00; text-decoration: underline; }
.crumb > span { color: var(--ink, #1f2a44); }
.crumb > i { font-style: normal; color: #c7b98f; }
.crumb > a.home { display: inline-flex; font-size: 16px; }

/* 글 맨 위 그림 */
.article .art-hero { margin: 0 0 18px; text-align: center; }
.article .art-hero img { width: min(100%, 360px); height: auto; border-radius: 24px; background: var(--soft-yellow); }

/* 글 중간 삽화: 흰 바탕을 종이색에 섞는다 */
.prose img.art-sec { display: block; width: min(100%, 360px); height: auto; margin: 4px auto 12px; mix-blend-mode: multiply; }

/* 글 안의 표 */
.prose .tbl { overflow-x: auto; margin: 12px 0 18px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; background: #fff; border-radius: 12px; overflow: hidden; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; line-height: 1.55; }
.prose th { background: var(--soft-yellow); font-weight: 700; white-space: nowrap; }

.card ul { margin: 8px 0 0; padding-left: 20px; }
.card li { margin: 4px 0; line-height: 1.7; }

.more-row { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.more-row > i { font-size: 26px; color: var(--ink); flex: none; }
.more-row b { display: block; }
.more-row small { display: block; color: var(--muted); margin-top: 2px; line-height: 1.5; }
