/* 사례 명세형 — 흰 바탕, 하늘색 포인트, 둥근 산세리프(Pretendard) */
@font-face { font-family: 'Pretendard Variable'; src: url('/fonts/PretendardVariable.woff2') format('woff2-variations'); font-weight: 45 920; font-display: swap; }
:root {
  --bg: #FFFFFF; --soft: #F5F7F8; --ink: #22272B; --ink2: #4C555C; --muted: #8B949B; --line: #E8ECEE; --line2: #D7DDE0;
  --sky: #1FB4E0; --sky-d: #0E94BD; --sky-soft: #E6F6FB;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --w: 1136px; --r: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--sans); letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
.ic, .cs-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cs-ic--s { width: 14px; height: 14px; }
.cs-ic--l { width: 30px; height: 30px; stroke-width: 1.4; }
a:focus-visible, button:focus-visible, summary:focus-visible, .cs-field:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.main { max-width: var(--w); margin: 0 auto; padding: 0 20px 96px; }
.main--post { max-width: none; padding: 0 0 96px; }

/* 머리글 — 2단 */
.cs-top { border-bottom: 1px solid var(--line); background: #fff; }
.cs-top__in { max-width: var(--w); margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cs-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--sky); }
.cs-brand .brand__mark { width: 28px; height: 28px; }
.cs-brand span { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; white-space: nowrap; }
.cs-top__r { display: flex; align-items: center; gap: 14px; }
.cs-top__admin { font-size: 14px; color: var(--ink2); text-decoration: none; white-space: nowrap; }
.cs-top__admin:hover { color: var(--sky-d); }
.cs-sub__in { max-width: var(--w); margin: 0 auto; padding: 0 20px; display: flex; gap: 22px; }
.cs-nav__a { display: block; padding: 12px 0 11px; font-size: 15.5px; font-weight: 700; color: var(--ink2); text-decoration: none; }
.cs-nav__a:hover { color: var(--sky-d); }
.cs-nav__a.is-on { color: var(--sky-d); box-shadow: inset 0 -3px 0 var(--sky); }

.cs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; border-radius: 6px; border: 1px solid var(--sky); background: var(--sky); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.cs-btn:hover { background: var(--sky-d); border-color: var(--sky-d); }
.cs-btn--sm { padding: 7px 12px; font-size: 13.5px; }
.cs-btn--line { background: #fff; color: var(--ink2); border-color: var(--line2); }
.cs-btn--line:hover { background: var(--soft); border-color: var(--ink2); }
.cs-btn--block { width: 100%; }

/* 목록 머리 + 필터 칩 */
.cs-list { padding-top: 30px; }
.cs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.cs-h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; }
.cs-lead { margin-top: 6px; color: var(--ink2); font-size: 15px; }
.cs-search { display: flex; align-items: center; gap: 8px; width: 280px; flex: none; padding: 0 12px; border: 1px solid var(--line2); border-radius: 6px; background: var(--soft); color: var(--muted); }
.cs-search:focus-within { border-color: var(--sky); background: #fff; }
.cs-search__in { width: 100%; min-width: 0; border: 0; background: transparent; padding: 10px 0; font-size: 14.5px; outline: none; color: var(--ink); }
.cs-chipbar { position: relative; margin-top: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); z-index: 5; }
.cs-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cs-chip { position: relative; }
.cs-chip summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; padding: 7px 10px 7px 13px; border-radius: 6px; background: var(--soft); font-size: 14.5px; color: var(--ink2); cursor: pointer; white-space: nowrap; user-select: none; }
.cs-chip summary::-webkit-details-marker { display: none; }
.cs-chip summary:hover { background: #ECEFF1; }
.cs-chip[open] summary .cs-ic { transform: rotate(180deg); }
.cs-chip.is-on summary { background: var(--sky-soft); color: var(--sky-d); font-weight: 700; }
.cs-chip__menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 170px; padding: 6px; background: #fff; border: 1px solid var(--line2); border-radius: 8px; box-shadow: 0 8px 24px rgba(34, 39, 43, .12); display: grid; }
.cs-chip__opt { padding: 9px 10px; border-radius: 5px; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.cs-chip__opt:hover { background: var(--soft); }
.cs-chip__opt.is-on { color: var(--sky-d); font-weight: 700; }
.cs-chip__opt--clear { color: var(--muted); border-bottom: 1px solid var(--line); border-radius: 5px 5px 0 0; }
.cs-chips__reset { font-size: 14px; color: var(--sky-d); font-weight: 600; margin-left: 4px; text-decoration: none; }
.cs-count { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 16px; font-size: 15px; }
.cs-count b { color: var(--sky-d); }
.cs-sort { border: 0; background: transparent; font-size: 14px; color: var(--ink2); cursor: pointer; }
.cs-empty { padding: 56px 0; text-align: center; color: var(--muted); }

/* 3열 카드 */
.cs-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
.cs-card { position: relative; min-width: 0; }
.cs-card__a { display: block; text-decoration: none; }
.cs-card__ph { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.cs-card__ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.cs-card__a:hover .cs-card__ph img { transform: scale(1.04); }
.cs-card__spec { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--sky-d); }
.cs-card__t { margin-top: 4px; font-size: 17px; font-weight: 700; line-height: 1.45; letter-spacing: -0.03em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-card__by { margin-top: 10px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.cs-who { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); font-weight: 600; white-space: nowrap; }
.cs-who__av { display: inline-flex; color: var(--sky); }
.cs-who__av .brand__mark { width: 22px; height: 22px; border-radius: 50%; }
.cs-card__st { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-save { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.cs-save .cs-ic { width: 26px; height: 26px; fill: rgba(0, 0, 0, .18); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.cs-save.is-on .cs-ic { fill: var(--sky); stroke: #fff; }

/* 글 보기 */
.cs-hero { max-height: 560px; overflow: hidden; background: var(--soft); }
.cs-hero img { width: 100%; height: 560px; object-fit: cover; display: block; }
.cs-post__head { max-width: 760px; margin: 0 auto; padding: 44px 20px 0; text-align: center; }
.cs-post__head--plain { padding-top: 64px; }
.cs-post__cat { font-size: 14px; font-weight: 700; color: var(--sky-d); text-decoration: none; }
.cs-post__t { margin-top: 10px; font-size: 32px; line-height: 1.4; font-weight: 800; letter-spacing: -0.04em; }
.cs-post__by { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; font-size: 14px; }
.cs-post__d { color: var(--muted); }
.cs-body { max-width: 600px; margin: 36px auto 0; padding: 0 20px; }

.cs-spec { border-radius: var(--r); background: var(--soft); padding: 22px 20px 18px; margin-bottom: 40px; }
.cs-spec__cells { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; text-align: center; }
.cs-spec__cells li { display: grid; justify-items: center; gap: 4px; color: var(--ink2); }
.cs-spec__cells b { font-size: 15px; color: var(--ink); }
.cs-spec__k { font-size: 12.5px; color: var(--muted); }
.cs-spec__line { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line2); font-size: 14px; font-weight: 600; }
.cs-spec__line .cs-spec__k { margin-right: 6px; font-weight: 400; }

.cs-prose { font-size: 16.5px; line-height: 1.85; }
.cs-prose > * + * { margin-top: 1.1em; }
.cs-prose h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; margin-top: 2em; padding-left: 12px; border-left: 4px solid var(--sky); line-height: 1.4; }
.cs-prose h3 { font-size: 17.5px; font-weight: 700; margin-top: 1.7em; }
.cs-prose h2 + *, .cs-prose h3 + * { margin-top: .7em; }
.cs-prose ul, .cs-prose ol { padding-left: 1.3em; }
.cs-prose li::marker { color: var(--sky); }
.cs-prose strong { font-weight: 700; color: var(--sky-d); }
.cs-prose a { color: var(--sky-d); }
.cs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.cs-tag { padding: 5px 11px; border-radius: 6px; background: var(--sky-soft); color: var(--sky-d); font-size: 13.5px; text-decoration: none; }
.cs-tag:hover { background: #D3EFF8; }
.cs-cta { margin-top: 40px; padding: 22px; border: 1px solid var(--line2); border-radius: var(--r); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cs-cta__t { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.cs-cta__s { margin-top: 4px; font-size: 14px; color: var(--ink2); }
.cs-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.cs-pn a { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: var(--soft); text-decoration: none; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.cs-pn a span { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.cs-pn a:hover { background: #ECEFF1; }
.cs-pn__next { text-align: right; }
.cs-rel { max-width: var(--w); margin: 72px auto 0; padding: 36px 20px 0; border-top: 8px solid var(--soft); }
.cs-rel__h { font-size: 20px; font-weight: 800; margin-bottom: 18px; }
.cs-grid--rel .cs-card__t { font-size: 15.5px; margin-top: 10px; }

/* 떠 있는 세로 행동 막대 */
.cs-act { position: fixed; z-index: 20; top: 50%; transform: translateY(-50%); left: calc(50% + 340px); display: grid; gap: 10px; }
.cs-act__b { width: 58px; height: 58px; display: grid; place-items: center; align-content: center; gap: 2px; border: 1px solid var(--line2); border-radius: 50%; background: #fff; color: var(--ink2); font-size: 11.5px; text-decoration: none; cursor: pointer; box-shadow: 0 2px 8px rgba(34, 39, 43, .06); }
.cs-act__b:hover { border-color: var(--sky); color: var(--sky-d); }
.cs-act__b.is-on { color: var(--sky-d); border-color: var(--sky); }
.cs-act__b.is-on .cs-ic { fill: var(--sky); stroke: var(--sky); }

/* 상담 */
.cs-narrow { max-width: 640px; margin: 0 auto; padding-top: 44px; }
.cs-from { display: grid; gap: 2px; margin-top: 20px; padding: 12px 14px; border-radius: var(--r); background: var(--sky-soft); text-decoration: none; font-weight: 700; color: var(--sky-d); }
.cs-from span { font-size: 12.5px; font-weight: 400; color: var(--ink2); }
.cs-form { display: grid; gap: 16px; margin-top: 26px; }
.cs-form__2, .cs-form__3 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-form__3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-row { display: grid; gap: 6px; min-width: 0; }
.cs-row > span { font-size: 14px; font-weight: 700; }
.cs-field { width: 100%; padding: 11px 12px; border: 1px solid var(--line2); border-radius: 6px; background: #fff; font-size: 15px; }
.cs-field:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft); }
textarea.cs-field { resize: vertical; line-height: 1.7; }
.cs-err { color: #C2412D; font-size: 14px; }
.cs-err:empty { display: none; }
.cs-hint { font-size: 13px; color: var(--muted); }
.cs-thanks__b { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cs-link { color: var(--sky-d); }

/* 바닥글 */
.cs-foot { background: var(--soft); border-top: 1px solid var(--line); }
.cs-foot__in { max-width: var(--w); margin: 0 auto; padding: 24px 20px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cs-foot__note { font-size: 13.5px; color: var(--muted); max-width: 46em; }
.cs-foot__note b { color: var(--ink2); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .cs-act { left: auto; right: 14px; }
}
@media (max-width: 720px) {
  .cs-head { flex-direction: column; align-items: stretch; }
  .cs-search { width: auto; }
  .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  /* 칩 줄은 가로로 넘기고, 펼친 목록은 줄 아래 전체 폭으로 */
  .cs-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .cs-chips::-webkit-scrollbar { display: none; }
  .cs-chip { position: static; }
  .cs-chip__menu { top: calc(100% - 6px); left: 0; right: 0; }
  .cs-chips__reset { white-space: nowrap; }
  /* 세로 행동 막대 → 하단 고정 바 */
  .cs-act { top: auto; bottom: 0; left: 0; right: 0; transform: none; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-top: 1px solid var(--line2); padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); }
  .cs-act__b { width: auto; height: 50px; border: 0; border-radius: 0; box-shadow: none; }
  .main--post { padding-bottom: 80px; }
  .cs-foot { padding-bottom: 0; }
  .main--post + .cs-foot { padding-bottom: 60px; }
}
@media (max-width: 560px) {
  .main { padding: 0 16px 72px; }
  .main--post { padding: 0 0 80px; }
  .cs-top__in { padding: 0 16px; height: 56px; }
  .cs-brand span { font-size: 17px; }
  .cs-top__admin { font-size: 13px; }
  .cs-sub__in { padding: 0 16px; }
  .cs-list { padding-top: 22px; }
  .cs-h1 { font-size: 23px; }
  .cs-card__t { font-size: 15px; }
  .cs-card__by .cs-who { display: none; }
  .cs-save { top: 4px; right: 4px; }
  .cs-hero img { height: 300px; }
  .cs-post__head { padding: 28px 16px 0; }
  .cs-post__t { font-size: 24px; }
  .cs-body { padding: 0 16px; }
  .cs-spec { padding: 18px 12px 14px; }
  .cs-spec__cells { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 6px; }
  .cs-cta { flex-direction: column; align-items: stretch; }
  .cs-pn { grid-template-columns: 1fr; }
  .cs-pn__next { text-align: left; }
  .cs-rel { padding: 30px 16px 0; margin-top: 52px; }
  .cs-form__2, .cs-form__3 { grid-template-columns: minmax(0, 1fr); }
  .cs-narrow { padding-top: 28px; }
  .cs-foot__in { flex-direction: column; align-items: flex-start; padding: 22px 16px 30px; }
}
