/* 혜택노트 — 공문서 영수증 콘셉트
   주제는 색과 아이콘으로(청년 파랑 · 육아 자주 · 도시개발 황토 · 축제 주황), 지역은 무채색 칩으로 구분해요. */
:root {
  --paper: #f3f5f1;
  --surface: #ffffff;
  --ink: #1b2632;
  --muted: #56626e;
  --line: #d6dcd4;
  --primary: #1f5c45;
  --primary-soft: #e3efe8;
  --on-primary: #ffffff;
  --seal: #b4302a;
  --youth: #2e5aa0;
  --parenting: #8e4a83;
  --urban: #8a5f10;
  --events: #b4530f;
  --cp-link: #2f7d32;
  --focus: #2e5aa0;
  --radius-s: 8px;
  --radius-m: 12px;
  --font: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --font-title: 'Gowun Batang', 'AppleMyungjo', 'Batang', serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11171c; --surface: #1a2229; --ink: #e6ebe6; --muted: #a2adb6; --line: #2f3a43;
    --primary: #6fbf98; --primary-soft: #1c3128; --on-primary: #0e1a14; --seal: #ef7a6f;
    --youth: #8fb0ea; --parenting: #d79bcc; --urban: #e0b25c; --events: #f0a070; --cp-link: #69db7c; --focus: #8fb0ea; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #11171c; --surface: #1a2229; --ink: #e6ebe6; --muted: #a2adb6; --line: #2f3a43;
  --primary: #6fbf98; --primary-soft: #1c3128; --on-primary: #0e1a14; --seal: #ef7a6f;
  --youth: #8fb0ea; --parenting: #d79bcc; --urban: #e0b25c; --events: #f0a070; --cp-link: #69db7c; --focus: #8fb0ea; color-scheme: dark;
}

/* 주제 색 묶음 */
.cat-youth, .tab-youth, .nav-youth { --cat: var(--youth); }
.cat-parenting, .tab-parenting, .nav-parenting { --cat: var(--parenting); }
.cat-urban, .tab-urban, .nav-urban { --cat: var(--urban); }
.cat-events, .tab-events, .nav-events { --cat: var(--events); }
.tab-all, .nav-tool { --cat: var(--primary); }
[class*="cat-"], .tab, .main-nav a { --cat-soft: color-mix(in srgb, var(--cat, var(--primary)) 11%, var(--surface)); --cat-line: color-mix(in srgb, var(--cat, var(--primary)) 32%, var(--line)); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.75; word-break: keep-all; overflow-wrap: break-word; }
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }

/* ── 머리말 (스크롤해도 위에 붙어 있음) ── */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 60px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-title); font-size: 1.3rem; color: var(--ink); text-decoration: none; padding-block: 8px; }
.logo-mark { width: 22px; height: 18px; border-radius: 4px; background: var(--primary); box-shadow: inset 0 -7px 0 -5px var(--paper); }
.main-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-size: .95rem; padding: 10px 10px; white-space: nowrap; border-radius: var(--radius-s) var(--radius-s) 0 0; }
.main-nav a .ic { color: var(--cat); }
.main-nav a:hover { background: var(--cat-soft); }
.main-nav a.is-active { font-weight: 700; box-shadow: inset 0 -3px 0 var(--cat); }
@media (max-width: 560px) {
  .header-row { min-height: 0; padding-top: 4px; }
  .main-nav { width: 100%; justify-content: space-between; margin: 0 -6px; }
  .main-nav a { padding: 8px 4px; font-size: .88rem; gap: 4px; }
  .main-nav a .ic { display: none; }
}

/* ── 처음 화면 ── */
.hero { padding: 28px 0 8px; }
.hero h1 { font-family: var(--font-title); font-size: clamp(1.55rem, 4.4vw, 2.3rem); line-height: 1.35; margin: 0 0 8px; max-width: 24em; }
.hero-sub { color: var(--muted); margin: 0 0 20px; max-width: 38em; }

/* 찾기 도구 — 스크립트가 켜졌을 때만 보여요 */
.finder { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; gap: 14px; }
.js .finder { display: grid; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tabs .tab-all { grid-column: 1 / -1; }
@media (min-width: 680px) { .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) { .tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); } .tabs .tab-all { grid-column: auto; } }
.tab { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: .98rem; cursor: pointer; text-align: left; }
.tab .ic { width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: var(--cat-soft); color: var(--cat); }
.tab .count { margin-left: auto; font-size: .85rem; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.tab:hover { border-color: var(--cat-line); }
.tab.is-on { border-color: var(--cat); background: var(--cat-soft); box-shadow: inset 0 0 0 1px var(--cat); }
.tab.is-on .ic { background: var(--cat); color: var(--surface); }
.tab.is-on .count { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips-label { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .9rem; margin-right: 2px; }
.chip { min-height: 40px; padding: 6px 15px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--surface); font-weight: 700; }
.search { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--muted); }
.search:focus-within { border-color: var(--focus); outline: 3px solid color-mix(in srgb, var(--focus) 30%, transparent); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 10px 0; }
.search input:focus { outline: none; }
.result-line { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.result-line strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.block { margin: 24px 0 36px; }
.block-title { font-size: 1.15rem; margin: 0 0 6px; }

/* ── 글 카드 (영수증: 위는 내용, 점선 아래는 금액) ── */
.slips { display: grid; gap: 14px; }
@media (min-width: 760px) { .slips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .block .slips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.slip { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 0; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--cat); border-radius: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.slip:hover { border-color: var(--cat-line); border-top-color: var(--cat); }
.slip:hover .slip-title { text-decoration: underline; text-decoration-color: var(--cat); text-underline-offset: 4px; }
.slip-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slip-top .stamp { margin: 0 2px 0 auto; }
.slip-title { font-size: 1.08rem; line-height: 1.5; margin: 0; font-weight: 700; }
.slip-lead { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slip-foot { position: relative; margin: auto -16px 0; padding: 12px 16px 14px; border-top: 2px dashed var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 6px 12px; flex-wrap: wrap; background: color-mix(in srgb, var(--paper) 55%, var(--surface)); border-radius: 0 0 9px 9px; }
.slip-foot::before, .slip-foot::after { content: ''; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.slip-foot::before { left: -9px; } .slip-foot::after { right: -9px; }
.slip-amount { display: flex; flex-direction: column; min-width: 0; }
.slip-amount strong { font-size: 1.12rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.slip-regions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--muted); }
.slip-regions .ic { width: 15px; height: 15px; }
.slip-regions span, .post-regions a { font-size: .8rem; padding: 1px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); text-decoration: none; }
.slip.is-closed { border-top-color: var(--line); }
.slip.is-closed .slip-amount strong, .slip.is-closed .slip-title { color: var(--muted); }
.stub-label { font-size: .76rem; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 7px; border-radius: 999px; background: var(--cat-soft); color: var(--cat); font-weight: 700; font-size: .82rem; line-height: 1.6; }
.badge .ic { width: 16px; height: 16px; }
.review-tag { font-size: .76rem; font-weight: 700; color: var(--seal); border: 1.5px solid currentColor; border-radius: 999px; padding: 0 8px; }

/* 도장 — 이 사이트에서 유일하게 기울어진 요소 */
.stamp { display: inline-block; align-self: flex-start; padding: 0 8px; border: 2px solid currentColor; border-radius: 4px; font-size: .8rem; font-weight: 700; line-height: 1.6; transform: rotate(-4deg); white-space: nowrap; }
.stamp-soon { color: var(--seal); }
.stamp-open { color: var(--primary); }
.stamp-closed { color: var(--muted); border-style: dashed; }
.stamp-live { color: var(--events); background: color-mix(in srgb, var(--events) 10%, transparent); }

.tool-cta { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--primary-soft); }
.tool-cta > div { flex: 1 1 260px; min-width: 0; }
.tool-cta p { margin: 0; color: var(--muted); }
.tool-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--surface); color: var(--primary); }
.tool-ic .ic { width: 28px; height: 28px; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 8px 18px; border-radius: var(--radius-s); font-weight: 700; font-size: .96rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; text-align: center; }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ink { background: var(--ink); color: var(--paper); }
.is-disabled { opacity: .55; cursor: default; font-weight: 500; }

/* ── 목록 머리 ── */
.list-band { background: var(--cat-soft, var(--surface)); border-bottom: 1px solid var(--cat-line, var(--line)); padding-block: 28px 22px; margin-bottom: 20px; }
.list-band:not([class*="cat-"]) { --cat: var(--ink); background: var(--surface); }
.list-band .wrap { display: flex; gap: 16px; align-items: flex-start; }
.list-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--surface); color: var(--cat); border: 1px solid var(--cat-line, var(--line)); }
.list-ic .ic { width: 30px; height: 30px; }
.list-kicker { margin: 0; color: var(--muted); font-size: .9rem; }
.list-band h1 { font-family: var(--font-title); font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 6px; line-height: 1.35; color: var(--ink); }
.list-band p { margin: 0; color: var(--muted); max-width: 40em; }
.list-band + .wrap .finder { margin-bottom: 14px; }
.empty { color: var(--muted); padding: 24px 0; }

/* ── 글 ── */
.post { padding-bottom: 40px; }
.post-band { background: var(--cat-soft); border-bottom: 1px solid var(--cat-line); padding-block: 4px 18px; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.post-col { min-width: 0; max-width: 740px; }
.post-aside { display: none; }
@media (min-width: 1080px) {
  .post-grid { grid-template-columns: minmax(0, 740px) 256px; gap: 48px; justify-content: space-between; }
  .post-aside { display: block; padding-top: 24px; }
  .toc-inline { display: none; }
}
.crumbs { display: flex; gap: 6px; align-items: center; padding: 14px 0 10px; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.post-band h1 { font-family: var(--font-title); font-size: clamp(1.55rem, 4.8vw, 2.2rem); line-height: 1.4; margin: 10px 0 8px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: .9rem; color: var(--muted); }
.post-meta .ic { margin-right: 4px; }
.post-band-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.post-regions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; color: var(--muted); }
.copy-link { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 4px 12px; border: 1px solid var(--cat-line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; }
.copy-link:hover { border-color: var(--cat); }
.disclosure { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 0; padding: 16px 18px; background: color-mix(in srgb, var(--seal) 6%, var(--surface)); border: 2px solid color-mix(in srgb, var(--seal) 45%, var(--line)); border-radius: 10px; }
.disclosure > .ic { width: 26px; height: 26px; margin-top: 2px; color: var(--seal); }
.disclosure p { margin: 0; }
.disclosure strong { display: block; font-size: clamp(1.02rem, 2.6vw, 1.15rem); line-height: 1.6; color: var(--ink); }
.disclosure-thanks { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: .95rem; line-height: 1.6; color: var(--muted); }
.disclosure-thanks .ic, .coupang-plea .ic { margin-top: .25em; color: var(--seal); fill: color-mix(in srgb, var(--seal) 20%, transparent); }
.coupang-plea { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; background: color-mix(in srgb, var(--seal) 6%, var(--surface)); font-weight: 700; font-size: .95rem; line-height: 1.6; }
.review-note { display: flex; gap: 10px; margin: 18px 0 0; padding: 12px 14px; background: color-mix(in srgb, var(--seal) 9%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--seal) 40%, var(--line)); border-radius: var(--radius-s); font-size: .92rem; }
.review-note .ic { color: var(--seal); width: 22px; height: 22px; margin-top: 2px; }
.review-note p { margin: 0; }

.ticket { margin: 20px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; border-top: 4px solid var(--cat); }
.ticket-title { margin: 0; padding: 12px 18px 0; font-size: .85rem; font-weight: 700; color: var(--cat); }
.ticket-figures { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; padding: 8px 18px 16px; border-bottom: 2px dashed var(--line); align-items: start; }
.ticket-figures > div { display: flex; flex-direction: column; align-items: flex-start; }
.ticket-figures .stamp { margin-top: 6px; }
.ticket-amount { font-size: clamp(1.3rem, 5vw, 1.8rem); line-height: 1.3; font-variant-numeric: tabular-nums; }
.ticket-sub { font-size: .82rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.ticket-summary { margin: 0; padding: 14px 18px 14px 38px; }
.ticket-summary li { margin: 6px 0; }
.ticket-summary li::marker { color: var(--cat); }
.ticket-cta { padding: 0 18px 18px; }
.ticket-cta .btn { width: 100%; }
@media (min-width: 600px) { .ticket-cta .btn { width: auto; } }

.toc { margin: 20px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.toc summary { font-weight: 700; cursor: pointer; }
.toc summary span { font-weight: 400; color: var(--muted); font-size: .88rem; margin-left: 6px; }
.toc ol { margin: 8px 0 0; padding-left: 22px; }
.toc a { color: var(--ink); }

.aside-stick { position: sticky; top: 84px; display: grid; gap: 16px; }
.aside-title { margin: 0 0 6px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.toc-side ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc-side a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1.45; }
.toc-side a:hover { color: var(--ink); }
.toc-side a.is-here { color: var(--ink); font-weight: 700; border-left-color: var(--cat); }
.aside-cta { width: 100%; }

.prose { font-size: 1.05rem; line-height: 1.85; }
.prose h2 { font-size: 1.34rem; line-height: 1.45; margin: 2.4em 0 .7em; padding-left: 14px; border-left: 4px solid var(--cat, var(--primary)); scroll-margin-top: 84px; }
.prose h3 { font-size: 1.12rem; margin: 1.8em 0 .5em; scroll-margin-top: 84px; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--cat, var(--primary)); }
.prose strong { font-weight: 700; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--cat, var(--primary)) 16%, transparent) 62%); }
.prose code { background: var(--paper); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.prose blockquote { margin: 1em 0; padding: 4px 16px; border-left: 3px solid var(--line); color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: .96rem; line-height: 1.6; min-width: 440px; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-variant-numeric: tabular-nums; }
.prose thead th { background: var(--cat-soft, var(--paper)); font-size: .88rem; color: var(--ink); font-weight: 700; }
.prose tbody tr:nth-child(even) { background: color-mix(in srgb, var(--paper) 55%, var(--surface)); }
.prose tbody th { font-weight: 700; }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.prose table strong { background: none; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist .todo { display: flex; gap: 10px; align-items: baseline; }
.checklist .box { flex: none; width: 18px; height: 18px; border: 2px solid var(--cat, var(--muted)); border-radius: 4px; transform: translateY(3px); font-size: 12px; line-height: 14px; text-align: center; }

.callout { --tone: var(--primary); margin: 1.3em 0; padding: 12px 16px 14px; border-radius: var(--radius-s); border: 1px solid color-mix(in srgb, var(--tone) 30%, var(--line)); background: color-mix(in srgb, var(--tone) 8%, var(--surface)); }
.callout-tip { --tone: var(--primary); }
.callout-warn { --tone: var(--seal); }
.callout-check { --tone: var(--urban); }
.callout-note { --tone: var(--youth); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 4px !important; color: var(--ink); }
.callout-title .ic { width: 20px; height: 20px; color: var(--tone); }
.callout strong { background: none; }

.official, .faq, .sources, .coupang, .related { margin-top: 40px; }
.official h2, .faq h2, .sources h2, .coupang h2, .related h2 { font-size: 1.18rem; margin: 0 0 12px; }
.official-links { display: flex; flex-wrap: wrap; gap: 8px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; line-height: 1.6; }
.faq details[open] summary { color: var(--cat, var(--primary)); }
.faq details p { margin: 8px 0 0; color: var(--ink); }
.sources ol { padding-left: 1.3em; margin: 0; font-size: .92rem; }
.sources li { margin: 6px 0; }
.src-org, .src-date { color: var(--muted); font-size: .85rem; }
.coupang { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.coupang-note { font-size: .85rem; color: var(--muted); margin: -4px 0 12px; }
/* 쿠팡 파트너스 링크 카드 (사진 · 상품 이름 · COUPANG · link.coupang.com) */
.cp-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cp-card { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); min-height: 112px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; color: var(--ink); text-decoration: none; }
a.cp-card:hover { border-color: var(--muted); }
a.cp-card:hover .cp-name { text-decoration: underline; text-underline-offset: 3px; }
.cp-thumb { display: flex; align-items: center; justify-content: center; background: #fff; border-right: 1px solid var(--line); }
.cp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cp-thumb .ic { width: 38px; height: 38px; color: #8a949c; }
.cp-info { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 12px 16px; min-width: 0; }
.cp-name { font-size: 1rem; font-weight: 500; line-height: 1.45; }
.cp-note { font-size: .84rem; color: var(--muted); line-height: 1.45; }
.cp-src { margin-top: 6px; font-size: .8rem; color: var(--muted); letter-spacing: .03em; line-height: 1.4; }
.cp-host { font-size: .86rem; color: var(--cp-link); line-height: 1.4; }
.cp-card.is-slot { border-style: dashed; }
.cp-widget { grid-template-columns: 136px minmax(0, 1fr); min-height: 256px; }
.cp-frame { display: flex; align-items: center; justify-content: center; padding: 8px; background: #fff; border-right: 1px solid var(--line); }
.cp-frame iframe { display: block; width: 120px; height: 240px; border: 0; }
@media (max-width: 420px) { .cp-widget { grid-template-columns: 136px minmax(0, 1fr); } }
.cp-slot-tag { align-self: flex-start; margin-bottom: 4px; padding: 0 6px; border: 1px dashed var(--muted); border-radius: 4px; background: var(--paper); color: var(--muted); font-size: .72rem; line-height: 1.6; }
@media (max-width: 420px) { .cp-card { grid-template-columns: 92px minmax(0, 1fr); min-height: 92px; } .cp-info { padding: 10px 12px; } }
.checknote { margin-top: 28px; padding: 14px 16px; background: var(--primary-soft); border-radius: var(--radius-s); font-size: .92rem; }
.checknote p { margin: 0; }
.related .slips { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .related .slips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.to-top { margin: 24px 0 0; text-align: right; }
.to-top a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .9rem; }

.ad { margin: 24px 0; text-align: center; }
.ad-label { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 4px; }
.ad-placeholder { padding: 22px 12px; border: 1.5px dashed var(--line); border-radius: var(--radius-s); color: var(--muted); font-size: .88rem; }

.promo { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin: 36px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.promo > div { flex: 1 1 240px; min-width: 0; }
.promo p { margin: 0; color: var(--muted); }
.promo .promo-title { color: var(--ink); font-weight: 700; }

.page { padding-block: 28px 48px; }
.page h1 { font-family: var(--font-title); font-size: clamp(1.5rem, 4vw, 2rem); }
.page-updated { color: var(--muted); font-size: .88rem; }

/* ── 계산기 ── */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; margin: 20px 0; }
.field { margin-bottom: 16px; }
.field > label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field select, .field input[type="month"] { width: 100%; min-height: 48px; padding: 8px 12px; font-size: 1rem; font-family: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-s); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; }
.seg label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); font-weight: 700; }
.seg input { accent-color: var(--primary); }
.hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.result { margin-top: 8px; border-top: 2px dashed var(--line); padding-top: 16px; }
.result-total { font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 700; font-variant-numeric: tabular-nums; margin: 0; }
.result-rows { list-style: none; padding: 0; margin: 12px 0 0; }
.result-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.result-rows li span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.result-notes { font-size: .88rem; color: var(--muted); padding-left: 1.2em; }

/* ── 꼬리말 ── */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 28px 40px; margin-top: 40px; font-size: .9rem; }
.footer-brand { margin: 0 0 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; }
.footer-nav a { color: var(--ink); }
.footer-fine { color: var(--muted); margin: 6px 0 0; font-size: .82rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* 계산기 페이지 머리 */
.post-head h1 { font-family: var(--font-title); font-size: clamp(1.55rem, 4.8vw, 2.15rem); line-height: 1.4; margin: 6px 0 8px; }
.post-head .post-meta { margin-bottom: 8px; }
.post-band .badge { background: var(--surface); border: 1px solid var(--cat-line); }
