/* 사례집은 기존 다이음 홈페이지의 색상·서체 변수를 사용합니다. */
.cs-main { background:#fff; }
.cs-intro { padding:54px 0 30px; }
.cs-intro h1,.cs-hero h1 { font-size:clamp(32px,4.4vw,52px); font-weight:800; line-height:1.17; }
.cs-intro p { color:var(--sub); font-size:clamp(16px,1.6vw,19px); margin-top:13px; }
.cs-tabs { display:flex; gap:26px; border-bottom:1px solid var(--line); }
.cs-tabs a { display:inline-flex; align-items:center; min-height:48px; padding:0 2px 8px; font-size:17px; font-weight:700; text-decoration:none; color:var(--sub); border-bottom:3px solid transparent; margin-bottom:-1px; }
.cs-tabs a[aria-current="page"] { color:var(--brand); border-color:currentColor; }
.cs-list { padding:27px 0 72px; }
.cs-list-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:17px; }
.cs-list-heading h2 { font-size:clamp(21px,2.1vw,26px); }
.cs-count,.cs-source { font-size:14px; color:var(--sub); }
.cs-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px 20px; padding:0; margin:0; list-style:none; }
.cs-card { position:relative; display:flex; flex-direction:column; height:100%; border:1px solid var(--line); border-radius:19px; overflow:hidden; background:#fff; transition:border-color .2s, box-shadow .2s; }
.cs-card:is(:hover,:focus-within) { border-color:var(--b-lav); box-shadow:var(--shadow); }
.cs-detail-link { color:inherit; text-decoration:none; }
.cs-detail-link::after { content:""; position:absolute; inset:0; }
.cs-card:has(.cs-detail-link:focus-visible) { outline:2px solid var(--brand); outline-offset:2px; }
.cs-cover { width:100%; height:auto; aspect-ratio:1.92; object-fit:cover; background:var(--gray); }
.cs-card-body { display:block; padding:17px 20px 20px; }
.cs-meta { display:block; color:var(--brand); font-size:14px; font-weight:700; }
.cs-card h3 { font-family:"Daieum Web Text","Pretendard",sans-serif; font-weight:700; font-size:clamp(19px,1.8vw,24px); margin:4px 0 7px; }
.cs-source { display:flex; flex-wrap:wrap; gap:5px 14px; align-items:baseline; margin:28px 0 0; }
.cs-source a,.cs-text-link { font-weight:700; color:var(--brand); text-underline-offset:3px; }
.cs-empty { padding:44px 20px; margin:28px 0 74px; text-align:center; border:1px solid var(--line); background:#f9f9fc; border-radius:18px; }
.cs-empty a { display:inline-block; margin-top:10px; }
.cs-crumb { display:flex; flex-wrap:wrap; align-items:center; gap:9px; padding:29px 0 20px; color:var(--sub); font-size:14px; }
.cs-crumb a { text-decoration:none; }
.cs-crumb a:hover { color:var(--brand); text-decoration:underline; }
.cs-hero { display:grid; grid-template-columns:1fr 1.15fr; align-items:center; gap:42px; margin:0 0 45px; }
.cs-hero h1 { margin:11px 0 14px; }
.cs-hero figure,.cs-gallery figure { margin:0; }
.cs-hero img { width:100%; height:auto; max-height:355px; object-fit:contain; background:#f4f3f0; border-radius:16px; }
.cs-hero figcaption,.cs-gallery figcaption { margin-top:7px; color:var(--sub); font-size:14px; }
.cs-section { padding:28px 0 36px; border-top:1px solid var(--line); }
.cs-section h2 { margin:0 0 17px; font-size:clamp(22px,2.55vw,30px); }
.cs-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px 16px; }
.cs-gallery a { display:block; }
.cs-gallery img { display:block; width:100%; height:clamp(200px,26vw,335px); object-fit:contain; border-radius:12px; background:#f5f4f1; }
.cs-original { max-width:850px; }
.cs-original .cs-subtitle { font-size:19px; font-weight:700; }
.cs-original ul { padding-left:1.2em; margin:14px 0; color:var(--sub); }
.cs-original li+li { margin-top:6px; }
.cs-original .cs-source { margin-top:18px; }
.cs-return { padding:0 0 68px; }
@media(max-width:850px) {
 .cs-grid,.cs-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .cs-hero { gap:22px; }
}
@media(max-width:600px) {
 .cs-intro { padding:32px 0 17px; }
 .cs-intro p { margin-top:10px; }
 .cs-tabs { gap:18px; }
 .cs-tabs a { font-size:15px; }
 .cs-list { padding:23px 0 44px; }
 .cs-grid { grid-template-columns:1fr; gap:16px; }
 .cs-card-body { padding:14px 16px 16px; }
 .cs-crumb { padding:20px 0 16px; }
 .cs-hero { grid-template-columns:1fr; gap:15px; margin-bottom:22px; }
 .cs-hero h1 { font-size:30px; }
 .cs-hero img { max-height:265px; }
 .cs-gallery { gap:14px 9px; }
 .cs-gallery img { height:clamp(155px,46vw,255px); }
 .cs-gallery figcaption { font-size:13px; line-height:1.45; }
 .cs-section { padding:22px 0; }
 .cs-source { display:block; }
 .cs-source a { display:inline-block; margin-top:5px; }
}
@media(max-width:350px){.cs-tabs{gap:12px}.cs-tabs a{font-size:14px}}

.cs-grid > li { scroll-margin-top:110px; }
.cs-book-name { color:var(--sub); font-size:14px; margin:0 0 8px; }
@media(max-width:980px){.cs-grid > li { scroll-margin-top:122px; }}

.cs-card-body .cs-title-row { margin:5px 0 7px; }
.cs-title-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.cs-title-row > h3,.cs-title-row > h1 { margin:0; min-width:0; }
.cs-title-row:has(.cs-company) { flex-direction:column; align-items:flex-start; }
.cs-brand-lockup { display:inline-flex; align-items:center; flex-wrap:wrap; gap:12px; max-width:100%; }
a.cs-brand-lockup { position:relative; z-index:1; min-height:40px; color:inherit; text-decoration:none; }
a.cs-brand-lockup:hover { opacity:.8; }
a.cs-brand-lockup:focus-visible { outline:2px solid var(--brand); outline-offset:3px; }
.cs-company { display:inline-flex; align-items:center; gap:6px; }
.cs-company-role { font-size:12px; color:var(--sub); white-space:nowrap; }
.cs-brand-lockup img { display:block; width:auto; height:auto; max-width:75px; max-height:32px; object-fit:contain; border-radius:0; background:transparent; }
.cs-brand-lockup .cs-company-mark { max-width:115px; max-height:28px; }
.cs-hero .cs-title-row { margin:12px 0 14px; gap:15px; }
.cs-hero .cs-brand-lockup .cs-brand-mark { max-width:125px; max-height:48px; }
.cs-hero .cs-brand-lockup .cs-company-mark { max-width:155px; max-height:37px; }
.cs-hero:not(:has(figure)) { display:block; }
.cs-prose p+p { margin-top:8px; }
.cs-hero:has(+ .cs-visit-story) { margin-bottom:20px; }
.cs-visit-story { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:16px 28px; margin:0 0 34px; }
.cs-visit-story > div { padding:14px 0 0; border-top:2px solid var(--b-lav); }
.cs-visit-story dt { margin-bottom:8px; font-size:18px; font-weight:700; color:var(--brand); }
.cs-visit-story dd { margin:0; line-height:1.7; white-space:pre-line; overflow-wrap:anywhere; }
@media (max-width:600px) {
 .cs-visit-story { grid-template-columns:1fr; margin-bottom:24px; }
}
.cs-loading { padding:40px 0 64px; color:var(--sub); }
.cs-status h1,.cs-status h2 { font-size:clamp(20px,3vw,28px); }
.cs-status button { margin-top:15px; }
@media(max-width:600px) {
 .cs-brand-lockup .cs-brand-mark { max-width:68px; max-height:30px; }
 .cs-hero .cs-brand-lockup .cs-brand-mark { max-width:105px; max-height:42px; }
}
