/* 삼신담 프리미엄 문답지 */
.sd-sv-page { width: min(820px, 100% - 32px); margin: 0 auto; padding: 56px 0 140px; color: #2e2b26; font-family: var(--sd-sans); word-break: keep-all; }
.sd-sv-page__head { text-align: center; margin-bottom: 28px; }
.sd-sv-page__title { margin: 10px 0 14px; font-family: var(--sd-serif); font-weight: 600; font-size: 34px; line-height: 1.35; letter-spacing: -.03em; }
.sd-sv-page__lead { margin: 0; font-size: 15px; line-height: 1.8; color: #615d56; }
.sd-sv-page__meta { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; font-size: 13px; color: #8a8478; }

.sd-sv-steps {
    position: sticky; top: var(--sd-header-h, 84px); z-index: 5; display: flex; gap: 6px; overflow-x: auto;
    margin: 0 -4px 18px; padding: 10px 4px; background: var(--sd-cream, #fffdf8); scrollbar-width: none;
}
.sd-sv-steps::-webkit-scrollbar { display: none; }
.sd-sv-steps a {
    flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px 7px 8px; border-radius: 999px;
    border: 1px solid #e2ddd3; background: #fff; font-size: 13px; color: #615d56; text-decoration: none; white-space: nowrap;
}
.sd-sv-steps a:hover { border-color: var(--sd-green); color: var(--sd-green); }
.sd-sv-steps b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #f2ece4; font-size: 11px; color: var(--sd-green); }

.sd-sv-card { margin-bottom: 18px; padding: 30px 32px; border: 1px solid #ebe6db; border-radius: 18px; background: #fff; scroll-margin-top: calc(var(--sd-header-h, 84px) + 64px); }
.sd-sv-card__h { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.sd-sv-card__h b { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sd-green); color: #fff; font-size: 13px; }
.sd-sv-card__desc { margin: 0 0 4px 38px; font-size: 14px; line-height: 1.7; color: #8a8478; }
.sd-sv-note { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: #f8f4eb; font-size: 14px; }

/* 문항 */
.sd-sv-field { display: block; margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.sd-sv-label { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 700; }
.sd-sv-label em { font-style: normal; font-size: 12px; font-weight: 700; color: #b5654a; }
.sd-sv-count { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 500; color: #a59a88; }
.sd-sv-help { display: block; margin: -2px 0 8px; font-size: 13px; line-height: 1.6; color: #8a8478; }
.sd-sv-field input[type=text], .sd-sv-field input[type=date], .sd-sv-field textarea {
    display: block; box-sizing: border-box; width: 100%; padding: 13px 14px; border: 1px solid #ddd6ca; border-radius: 10px;
    background: #fff; font: 15px/1.6 var(--sd-sans); color: #2e2b26; transition: border-color .15s, box-shadow .15s;
}
.sd-sv-field input[type=text], .sd-sv-field input[type=date] { height: 50px; }
.sd-sv-field textarea { min-height: 120px; resize: vertical; }
.sd-sv-field input:focus, .sd-sv-field textarea:focus { outline: 0; border-color: var(--sd-green); box-shadow: 0 0 0 3px rgba(72,46,41,.1); }
.sd-sv-field ::placeholder { color: #b4ad9f; }

/* 보기 */
.sd-sv-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-sv-choices.is-cards { display: grid; gap: 8px; }
.sd-sv-choice { position: relative; display: block; cursor: pointer; }
.sd-sv-choice > input { position: absolute; opacity: 0; pointer-events: none; }
.sd-sv-choice > span {
    display: flex; flex-direction: column; gap: 3px; padding: 11px 16px; border: 1px solid #ddd6ca; border-radius: 10px; background: #fff;
    font-size: 14px; transition: border-color .15s, background .15s;
}
.sd-sv-choices.is-cards .sd-sv-choice > span { padding: 14px 16px 14px 44px; }
.sd-sv-choices.is-cards .sd-sv-choice > span::before {
    content: ""; position: absolute; left: 16px; top: 17px; width: 16px; height: 16px; border: 1.5px solid #c9c1b3; border-radius: 50%; background: #fff; box-sizing: border-box;
}
.sd-sv-choice small { font-size: 13px; line-height: 1.6; color: #8a8478; }
.sd-sv-choice:hover > span { border-color: #b4ad9f; }
.sd-sv-choice > input:checked + span { border-color: var(--sd-green); background: #f8f4eb; box-shadow: inset 0 0 0 1px var(--sd-green); }
.sd-sv-choices.is-cards .sd-sv-choice > input:checked + span::before { border: 5px solid var(--sd-green); }
.sd-sv-choice > input:focus-visible + span { outline: 2px solid var(--sd-green); outline-offset: 2px; }
.sd-sv-choice--other .sd-sv-other { width: 100%; height: 40px; margin-top: 6px; padding: 0 12px; border: 1px solid #ddd6ca; border-radius: 8px; font: 14px var(--sd-sans); box-sizing: border-box; }
.sd-sv-choices:not(.is-cards) .sd-sv-choice--other > span { flex-direction: row; align-items: center; gap: 10px; }
.sd-sv-choices:not(.is-cards) .sd-sv-choice--other .sd-sv-other { margin: 0; width: 180px; height: 30px; }

/* 그림체 */
.sd-sv-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.sd-sv-style { position: relative; display: block; cursor: pointer; border-radius: 14px; }
.sd-sv-style > input { position: absolute; opacity: 0; pointer-events: none; }
.sd-sv-style__img { display: block; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 12px; border: 2px solid transparent; transition: border-color .15s; }
.sd-sv-style__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sd-sv-style:hover .sd-sv-style__img img { transform: scale(1.04); }
.sd-sv-style__txt { display: flex; flex-direction: column; gap: 1px; padding: 8px 2px 0; }
.sd-sv-style__txt b { font-size: 14px; }
.sd-sv-style__txt small { font-size: 12px; color: #8a8478; }
.sd-sv-style > input:checked ~ .sd-sv-style__img { border-color: var(--sd-green); box-shadow: 0 0 0 2px #fff inset; }
.sd-sv-style > input:checked ~ .sd-sv-style__txt b { color: var(--sd-green); }
.sd-sv-style > input:checked ~ .sd-sv-style__img::after {
    content: "✓"; position: absolute; left: 10px; top: 10px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    background: var(--sd-green); color: #fff; font-size: 14px; font-weight: 700;
}
.sd-sv-style > input:focus-visible ~ .sd-sv-style__img { outline: 2px solid var(--sd-green); outline-offset: 2px; }
.sd-sv-style__zoom {
    position: absolute; right: 8px; top: 8px; padding: 4px 9px; border-radius: 999px; background: rgba(255,253,248,.92);
    font-size: 11px; font-weight: 600; color: #4e493f; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

/* 동의 */
.sd-sv-consent { margin: 14px 0; font-size: 13.5px; line-height: 1.7; color: #615d56; }
.sd-sv-consent table { width: 100%; border-collapse: collapse; border-top: 1px solid #e2ddd3; }
.sd-sv-consent th, .sd-sv-consent td { padding: 10px 12px; border-bottom: 1px solid #ebe6db; text-align: left; vertical-align: top; }
.sd-sv-consent th { width: 84px; background: #f8f4eb; font-weight: 700; color: #2e2b26; white-space: nowrap; }
.sd-sv-consent p { margin: 10px 0 0; }
.sd-sv-consent a { color: inherit; text-decoration: underline; }
.sd-sv-agree { padding: 14px 16px; border-radius: 10px; background: #f8f4eb; font-size: 14px; }

/* 사진 · 편지 칸 여백 */
#sv-media .sd-info { margin-top: 16px; }
#sv-media .sd-info__block + .sd-info__block { margin-top: 22px; }

/* 하단 저장 막대 */
.sd-sv-bar { position: sticky; bottom: 0; z-index: 6; margin: 24px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255,253,248,0), var(--sd-cream, #fffdf8) 30%); }
.sd-sv-bar__in { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 20px; border: 1px solid #ebe6db; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px -12px rgba(72,46,41,.25); }
.sd-sv-bar__note { flex: 1; margin: 0; font-size: 13px; color: #8a8478; }
.sd-sv-btn {
    display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px; border: 1px solid var(--sd-green); border-radius: 10px;
    background: var(--sd-green); color: #fff !important; font: 700 15px var(--sd-sans); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.sd-sv-btn:hover { background: var(--sd-green-deep, #3f2b27); }
.sd-sv-btn--line { background: #fff; color: var(--sd-green) !important; }
.sd-sv-btn--line:hover { background: #f8f4eb; }
.sd-sv-btn:disabled { opacity: .6; cursor: default; }
.sd-sv-card > .sd-sv-btn { margin-top: 20px; }

/* 답변 보기 (관리자 · 제작 시작 후) */
.sd-sv__sec + .sd-sv__sec { margin-top: 22px; }
.sd-sv__h { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid #e2ddd3; font-size: 15px; font-weight: 700; color: #2e2b26; }
.sd-sv__dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin: 0; }
.sd-sv__row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #ebe6db; font-size: 14px; line-height: 1.65; }
.sd-sv__row.is-long { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 4px; }
.sd-sv__row dt { font-weight: 600; color: #8a8478; }
.sd-sv__row dd { margin: 0; color: #2e2b26; white-space: normal; }
.sd-sv__row .is-none { color: #b4ad9f; }
.sd-sv__style { display: block; width: 160px; margin-bottom: 6px; border-radius: 8px; }
.sd-sv__media { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
.sd-sv__from { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #8a8478; }

@media (max-width: 640px) {
    .sd-sv-page { padding-top: 36px; }
    .sd-sv-page__title { font-size: 26px; }
    .sd-sv-page__lead { font-size: 14px; }
    .sd-sv-page__lead br { display: none; }
    .sd-sv-steps { top: var(--sd-header-h, 64px); }
    .sd-sv-card { padding: 22px 18px; border-radius: 14px; }
    .sd-sv-card__h { font-size: 17px; }
    .sd-sv-card__desc { margin-left: 0; margin-top: 6px; }
    .sd-sv-styles { grid-template-columns: 1fr 1fr; gap: 10px; }
    .sd-sv-bar__note { display: none; }
    .sd-sv-bar__in { padding: 10px; }
    .sd-sv-bar__in .sd-sv-btn { flex: 1; padding: 0 12px; }
    .sd-sv-choices:not(.is-cards) .sd-sv-choice--other .sd-sv-other { width: 130px; }
    .sd-sv__dl { grid-template-columns: 1fr; }
    .sd-sv__row { grid-template-columns: 96px 1fr; }
    .sd-sv__media { grid-template-columns: 1fr; }
}

/* 주문상세 문답지 카드 */
.sd-osv.is-todo { border-color: var(--sd-green); box-shadow: 0 0 0 1px var(--sd-green) inset; }
.sd-osv__msg { margin: 10px 0 16px; font-size: 14px; line-height: 1.7; color: #615d56; }
.sd-osv__msg b { color: #2e2b26; }

/* 상품 상세: 그림체 갤러리 */
.sd-styles-gal { margin: 0 auto 48px; max-width: 1000px; text-align: center; }
.sd-styles-gal__h { margin: 0 0 6px; font-family: var(--sd-serif); font-weight: 600; font-size: 26px; letter-spacing: -.02em; color: #2e2b26; }
.sd-styles-gal__p { margin: 0 0 22px; font-size: 14.5px; line-height: 1.7; color: #8a8478; }
.sd-styles-gal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.sd-styles-gal__grid figure { margin: 0; }
.sd-styles-gal__grid a { display: block; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 12px; }
.sd-styles-gal__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sd-styles-gal__grid a:hover img { transform: scale(1.04); }
.sd-styles-gal__grid figcaption { padding: 8px 2px 0; font-size: 14px; font-weight: 700; color: #2e2b26; }
.sd-styles-gal__grid figcaption small { margin-left: 6px; font-weight: 400; font-size: 12.5px; color: #8a8478; }
.sd-styles-gal__flow { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.sd-styles-gal__flow li { padding: 8px 14px; border-radius: 999px; background: #f8f4eb; font-size: 13px; color: #4e493f; }
.sd-styles-gal__flow b { margin-right: 6px; color: var(--sd-green); }
@media (max-width: 640px) {
    .sd-styles-gal__h { font-size: 21px; }
    .sd-styles-gal__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* 그누보드 기본 legend 숨김 해제 */
.sd-sv-field > legend.sd-sv-label { position: static; float: left; width: 100%; margin: 0 0 8px; padding: 0; font-size: 15px; line-height: 1.5; text-indent: 0; overflow: visible; height: auto; }
.sd-sv-field > legend.sd-sv-label + .sd-sv-choices { clear: both; }
.sd-sv-page { padding-top: 8px; }
.sd-sv-page__title { margin-top: 0; font-size: 26px; }
@media (max-width: 640px) { .sd-sv-page__title { font-size: 21px; } }

/* 프리미엄 상세 소개 */
.sd-pi { margin: 0 auto 72px; max-width: 1100px; color: #2e2b26; word-break: keep-all; }
.sd-pi__hero {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
    padding: 56px 56px; border-radius: 24px;
    background: radial-gradient(120% 140% at 0% 100%, #eef3e6 0%, rgba(238,243,230,0) 55%), radial-gradient(120% 120% at 100% 0%, #fdf3dc 0%, rgba(253,243,220,0) 60%), #fbf7ef;
}
.sd-pi__title { margin: 10px 0 20px; font-family: var(--sd-serif); font-weight: 600; font-size: 34px; line-height: 1.4; letter-spacing: -.035em; }
.sd-pi__copy p:not(.sd-eyebrow) { margin: 0 0 12px; font-size: 16px; line-height: 1.85; color: #4e493f; }
.sd-pi__copy b { color: var(--sd-green); font-weight: 700; }
.sd-pi__art { position: relative; }
.sd-pi__art img { display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 42% 50%; border-radius: 200px 200px 22px 22px; box-shadow: 0 30px 50px -28px rgba(72,46,41,.45); }

.sd-pi__process { margin-top: 88px; text-align: center; }
.sd-pi__h { margin: 0; font-family: var(--sd-serif); font-weight: 600; font-size: 30px; letter-spacing: -.03em; }
.sd-pi__quote { margin: 14px 0 44px; font-size: 16px; line-height: 1.8; color: #615d56; }
.sd-pi__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.sd-pi__steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 36px; height: 2px; background: repeating-linear-gradient(90deg, #d9cfbd 0 6px, transparent 6px 12px); }
.sd-pi__step { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 6px; }
.sd-pi__ico {
    position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
    background: #fff; color: var(--sd-green); box-shadow: 0 0 0 6px var(--sd-cream, #fffdf8), 0 10px 22px -10px rgba(72,46,41,.4); border: 1px solid #ebe6db;
}
.sd-pi__ico svg { width: 30px; height: 30px; }
.sd-pi__step:not(:last-child)::after {
    content: ""; position: absolute; top: 28px; right: -18px; width: 16px; height: 16px; border-radius: 50%; z-index: 1;
    background: #c8785c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 4.5 10 8l-3.5 3.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.sd-pi__badge { margin-top: 18px; padding: 4px 12px; border-radius: 999px; background: var(--sd-green); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
.sd-pi__name { margin-top: 10px; font-family: var(--sd-serif); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.sd-pi__desc { margin: 10px 0 0; padding-top: 12px; border-top: 1px dashed #d9cfbd; font-size: 14px; line-height: 1.75; color: #736e64; }
.sd-styles-gal { margin-top: 0; }

@media (max-width: 860px) {
    .sd-pi__hero { grid-template-columns: 1fr; gap: 28px; padding: 32px 22px; border-radius: 18px; }
    .sd-pi__art { order: -1; }
    .sd-pi__title { font-size: 26px; }
    .sd-pi__copy p:not(.sd-eyebrow) { font-size: 15px; }
    .sd-pi__process { margin-top: 64px; }
    .sd-pi__h { font-size: 24px; }
    .sd-pi__quote { font-size: 14.5px; margin-bottom: 32px; }
    .sd-pi__steps { grid-template-columns: 1fr; gap: 0; text-align: left; }
    .sd-pi__steps::before { left: 35px; right: auto; top: 20px; bottom: 90px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #d9cfbd 0 6px, transparent 6px 12px); }
    .sd-pi__step { display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; align-items: start; padding: 0 0 22px; }
    .sd-pi__step:not(:last-child)::after { display: none; }
    .sd-pi__ico { grid-row: 1 / span 3; }
    .sd-pi__badge { justify-self: start; margin-top: 4px; }
    .sd-pi__name { margin-top: 6px; font-size: 18px; }
    .sd-pi__desc { margin-top: 6px; padding-top: 0; border-top: 0; }
}

/* 이미지 크게 보기 (dialog) */
html.sd-lb-open { overflow: hidden; }
.sd-lb { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.sd-lb::backdrop { background: rgba(28,22,20,.86); backdrop-filter: blur(3px); }
.sd-lb[open] { animation: sd-lb-in .18s ease-out; }
@keyframes sd-lb-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.sd-lb__box { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 88px; box-sizing: border-box; }
.sd-lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.sd-lb__fig img { display: block; max-width: min(1400px, 100%); max-height: calc(100dvh - 170px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); background: #fff; }
.sd-lb__fig figcaption { display: flex; gap: 12px; align-items: baseline; font: 15px/1.4 var(--sd-sans); }
.sd-lb__fig figcaption b { font-weight: 700; }
.sd-lb__fig figcaption span { font-size: 13px; opacity: .65; }
.sd-lb__close, .sd-lb__nav {
    position: absolute; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,.14); color: #fff; font: 300 30px/1 var(--sd-sans); transition: background .15s;
}
.sd-lb__close:hover, .sd-lb__nav:hover { background: rgba(255,255,255,.28); }
.sd-lb__close { top: 16px; right: 16px; width: 44px; height: 44px; }
.sd-lb__nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; font-size: 38px; padding-bottom: 4px; }
.sd-lb__nav--prev { left: 18px; }
.sd-lb__nav--next { right: 18px; }
.sd-lb.is-single .sd-lb__nav { display: none; }
@media (max-width: 640px) {
    .sd-lb__box { padding: 60px 12px 80px; }
    .sd-lb__nav { top: auto; bottom: 18px; margin-top: 0; width: 46px; height: 46px; }
    .sd-lb__nav--prev { left: calc(50% - 60px); }
    .sd-lb__nav--next { right: calc(50% - 60px); }
    .sd-lb__fig img { max-height: calc(100dvh - 200px); border-radius: 8px; }
}
