/* 양육비 추심 성공사례 & 후기 (목록 · 상세)
   목록은 알파추심 성공사례 화면(의뢰서 첨부 IMG_3133)과 같은 구성: 가운데 제목·회색 소제목, 제목 검색, 카드, 페이지 번호 */

.st-sec { padding: 36px 0 56px; }
.st-sec--soft { background: #f6f7f9; }
.st-head { text-align: center; margin-bottom: 26px; }
.st-head__title { font-size: 30px; font-weight: 800; line-height: 1.3; letter-spacing: -0.03em; color: var(--ink); }
.st-head__sub { margin-top: 6px; font-size: 16px; color: #6b7280; letter-spacing: -0.02em; }

.st-search { display: flex; justify-content: center; margin-bottom: 24px; }
.st-search input {
    width: 100%; max-width: 320px; height: 44px; padding: 0 14px; border: 1px solid #dfe1e6; border-radius: 8px; background: #fff;
    font: inherit; font-size: 16px; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.st-search input::placeholder { color: #9aa0a8; }
.st-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 21, 21, .1); }

.st-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.mp .st-grid:focus, .mp .st-grid:focus-visible { outline: none; }   /* 페이지를 넘기면 초점이 목록으로 온다 */
.st-card a {
    display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff;
    text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.st-card a:hover { border-color: var(--ink); box-shadow: 0 8px 20px rgba(0, 0, 0, .06); transform: translateY(-2px); }
.st-card__thumb { aspect-ratio: 4 / 3; overflow: hidden; background: #f7f7f8; }
.st-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.st-card__body { padding: 16px 18px 20px; }
.st-card__amount { margin-bottom: 4px; font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; color: var(--orange-dark); }
.st-card__title {
    font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.st-empty { padding: 48px 0; text-align: center; color: #6b7280; }
.st-note { margin-top: 22px; font-size: 13px; color: #8a8f98; text-align: center; }

.st-review {
    display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid #e6e9ee; border-radius: 12px; background: #fff;
    box-shadow: 0 2px 10px rgba(10, 26, 47, .05); text-decoration: none; color: var(--ink); cursor: zoom-in; transition: box-shadow .2s, transform .2s;
}
.st-review:hover { box-shadow: 0 14px 30px rgba(10, 26, 47, .12); transform: translateY(-2px); }
.st-review__img { display: block; aspect-ratio: 646 / 960; overflow: hidden; background: #f3f4f6; }
.st-review__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* 여백은 margin 으로: 줄 수 제한(line-clamp)은 안쪽 여백(padding) 자리에 다음 줄을 그려 버린다 */
.st-review__text {
    margin: 11px 14px 13px; font-size: 14px; font-weight: 600; line-height: 1.45; letter-spacing: -0.02em; color: var(--ink);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}

/* 페이지 번호 (stories.js 가 그린다) */
.st-pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 28px; }
.st-pager button, .st-pager span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 6px;
    border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 15px; color: #374151;
}
.st-pager button { cursor: pointer; transition: background-color .15s; }
.st-pager button:hover:not(:disabled):not([aria-current]) { background: #eceef1; }
.st-pager button[aria-current] { background: var(--ink); color: #fff; font-weight: 700; cursor: default; }
.st-pager button:disabled { color: #c4c8ce; cursor: default; }
.st-pager .st-pager__arrow { font-size: 20px; }
.st-pager span { color: #9aa0a8; }

@media (max-width: 991px) {
    .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .st-sec { padding: 26px 0 44px; }
    .st .mp-container { padding: 0 12px; }
    .st-head { margin-bottom: 20px; }
    .st-head__title { font-size: 26px; }
    .st-head__sub { margin-top: 4px; font-size: 15px; }
    .st-search { margin-bottom: 20px; }
    .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
    .st-card__body { padding: 13px 14px 16px; }
    .st-card__amount { font-size: 16px; margin-bottom: 3px; }
    .st-card__title { font-size: 15.5px; }
    .st-review__text { margin: 10px 12px 12px; font-size: 13px; }
    .st-pager { gap: 2px; margin-top: 24px; }
    .st-pager button, .st-pager span { min-width: 36px; height: 38px; padding: 0 4px; }
}
@media (max-width: 359px) {
    .st-pager button, .st-pager span { min-width: 32px; }
}

/* ---------- 상세 ---------- */
.sd { padding: 30px 0 64px; }
.sd-crumb { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.sd-crumb li + li::before { content: '›'; margin-right: 8px; color: #b5b0a3; }
.sd-crumb a { text-decoration: none; color: var(--muted); }
.sd-crumb a:hover { color: var(--ink); text-decoration: underline; }
.sd-head { max-width: 900px; margin: 0 auto; }
.sd-cat { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: #fff1e8; color: var(--orange-dark); font-size: 13.5px; font-weight: 700; }
.sd-title { font-size: clamp(25px, 3.6vw, 40px); font-weight: 800; line-height: 1.32; letter-spacing: -0.04em; }
.sd-summary { margin-top: 14px !important; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.7; color: #333; }
.sd-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; }
.sd-facts div { flex: 1 1 150px; padding: 14px 16px; border-radius: 12px; background: var(--cream); }
.sd-facts dt { font-size: 12.5px; color: var(--muted); }
.sd-facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.sd-facts .is-amount dd { color: var(--orange-dark); }

.sd-group { max-width: 900px; margin: 44px auto 0; }
.sd-group h2 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.sd-group h2 span { font-size: 14px; font-weight: 500; color: var(--muted); }
.sd-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sd-pages--proof { align-items: start; }
.sd-pages--1 { grid-template-columns: minmax(0, 440px); }
.sd-pages--2 { grid-template-columns: repeat(2, minmax(0, 440px)); }
.sd-pages a { display: block; overflow: hidden; border: 1px solid #e2e2e2; border-radius: 10px; background: #fff; cursor: zoom-in; transition: box-shadow .2s, border-color .2s; }
.sd-pages a:hover { border-color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
.sd-pages img { width: 100%; height: auto; }
.sd-note { max-width: 900px; margin: 22px auto 0 !important; font-size: 13.5px; color: var(--muted); }

.sd-cta { max-width: 900px; margin: 44px auto 0; padding: 30px 24px; border-radius: 18px; background: #151515; color: #fff; text-align: center; }
.sd-cta p { font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; letter-spacing: -0.03em; }
.sd-cta p + p { margin-top: 6px; font-size: 15px; font-weight: 400; color: rgba(255, 255, 255, .72); }
.sd-cta .mp-btn { margin-top: 20px; }

.sd-nav { max-width: 900px; margin: 30px auto 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.sd-nav a { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.sd-nav a:hover { border-color: var(--ink); }
.sd-nav small { font-size: 12.5px; color: var(--muted); }
.sd-nav span { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-nav .is-next { text-align: right; }
.sd-nav .is-list { justify-content: center; align-items: center; font-weight: 700; padding: 14px 20px; background: var(--cream); border-color: transparent; }

.sd-related { max-width: 1200px; margin: 54px auto 0; }
.sd-related h2 { margin-bottom: 16px; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }

@media (max-width: 767px) {
    .sd { padding: 20px 0 48px; }
    .sd-pages, .sd-pages--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .sd-pages--1 { grid-template-columns: minmax(0, 1fr); }
    .sd-pages--1.sd-pages--proof { grid-template-columns: minmax(0, 78%); }
    .sd-facts div { flex: 1 1 calc(50% - 5px); padding: 12px 14px; }
    .sd-facts dd { font-size: 16px; }
    .sd-nav { grid-template-columns: 1fr 1fr; }
    .sd-nav .is-list { grid-column: 1 / -1; order: 3; }
    .sd-cta .mp-btn { width: 100%; }
}
