/* 기존 안내·상품 페이지에 입히는 v3 스킨. 내용과 링크는 그대로 두고, 홈·무료 풀이와 같은 틀(휴대폰 폭 한 줄 화면, 아이보리 바탕, 짙은 녹색, 둥근 카드)로 보이게 한다.
   site.css 등 기존 스타일 뒤에 불러와 덮는다. */
html:has(body.v3){background:#e9e3d8}
body.v3{--bg:#f5f1ea;--card:#fffdf9;--ink:#1d2622;--sub:#5d6a64;--mute:#656e68;--line:#e4ddd0;--accent:#1f4d3f;--accent-soft:#e7efe9;--gold:#8f5f2b;max-width:480px;margin:0 auto!important;min-height:100vh;background:var(--bg)!important;color:var(--ink)!important;font-family:Pretendard,system-ui,-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif!important;font-size:16px;line-height:1.7;word-break:keep-all;box-shadow:0 0 0 1px rgba(0,0,0,.04),0 20px 60px rgba(40,30,10,.12);overflow-x:hidden}
body.v3.has-cta{padding-bottom:calc(118px + env(safe-area-inset-bottom))}
body.v3 *{box-sizing:border-box}
body.v3 main{display:block;padding:0 0 12px;background:transparent!important}
body.v3 .shell,body.v3 .p-wrap,body.v3 .wrap,body.v3 .container{width:auto!important;max-width:none!important;margin:0!important;padding-left:18px!important;padding-right:18px!important}
body.v3 main section,body.v3 main article,body.v3 main div{max-width:100%}
body.v3 main img{max-width:100%;height:auto;border-radius:14px}

/* 여러 칸 배치를 한 줄로 */
body.v3 main [class*="grid"],body.v3 main [class*="-pair"],body.v3 main [class*="layout"],body.v3 .p-detail-steps,body.v3 .sales-deliverables,body.v3 .sales-quotes,body.v3 .sales-originals,body.v3 .sales-choice,body.v3 .p-tabs,body.v3 .two,body.v3 .lr-collection,body.v3 .sr-package,body.v3 .p-product,body.v3 .p-info-panel{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;width:auto!important;float:none!important}
body.v3 main [class*="grid"]>*,body.v3 main [class*="layout"]>*{min-width:0;width:auto!important;margin-left:0!important;margin-right:0!important}

/* 글 */
body.v3 main h1{font-size:28px!important;line-height:1.28!important;letter-spacing:-.03em!important;font-weight:800!important;font-family:inherit!important;color:var(--ink)!important;margin:0 0 12px!important}
body.v3 main h2{font-size:22px!important;line-height:1.32!important;letter-spacing:-.02em!important;font-weight:800!important;font-family:inherit!important;color:var(--ink)!important;margin:0 0 10px!important}
body.v3 main h3{font-size:17px!important;line-height:1.4!important;letter-spacing:-.01em!important;font-weight:800!important;font-family:inherit!important;color:var(--ink)!important;margin:0 0 6px!important}
body.v3 main p,body.v3 main li,body.v3 main dd{font-size:15.5px;line-height:1.72;color:var(--ink)}
body.v3 main a{color:var(--accent)}
body.v3 .breadcrumbs{padding:14px 0 10px!important;margin:0!important;font-size:13px!important;color:var(--mute)!important}
body.v3 .breadcrumbs a{color:var(--mute)!important}
body.v3 .p-mini-note,body.v3 .p-sample-note,body.v3 .sr-action-note,body.v3 .sr-small,body.v3 main small,body.v3 figcaption{font-size:14px!important;line-height:1.6!important;color:var(--mute)!important}
body.v3 .p-product-tag,body.v3 .sales-eyebrow,body.v3 .sr-kicker,body.v3 .sr-result-kind,body.v3 .p-type{display:inline-block;font-size:13px!important;font-weight:700!important;color:var(--gold)!important;letter-spacing:0!important;background:none!important;padding:0!important;margin:0 0 6px!important}
body.v3 .p-detail-price,body.v3 .p-price{display:block;font-size:30px!important;font-weight:800!important;letter-spacing:-.02em!important;color:var(--accent)!important;margin:10px 0!important}
body.v3 .p-detail-price small,body.v3 .p-price small{font-size:16px!important;color:var(--accent)!important}

/* 카드 */
body.v3 .p-detail-section,body.v3 .sales-section,body.v3 .sr-decision-panel,body.v3 .p-kakao-panel,body.v3 .sales-reading,body.v3 .fc-detail-preview,body.v3 .p-product,body.v3 .sr-package,body.v3 .p-info-panel,body.v3 .sales-end,body.v3 .lr-premium-entry,body.v3 .sr-proof-section,body.v3 .lr-collection-note,body.v3 .sr-format-notice,body.v3 .sr-real-excerpt{background:var(--card)!important;border:1px solid var(--line)!important;border-radius:18px!important;padding:20px 18px!important;margin:14px 0!important;box-shadow:none!important}
body.v3 .p-detail-body{padding:0!important;margin:0!important;background:none!important}
body.v3 .p-detail-copy{padding:0!important}
body.v3 .p-detail-specs{display:grid!important;gap:0!important;margin:14px 0!important;padding:4px 16px!important;border-radius:16px!important;background:var(--card)!important;border:1px solid var(--line)!important}
body.v3 .p-detail-specs>div{padding:12px 0!important;border:0!important;border-top:1px solid var(--line)!important;display:block!important}
body.v3 .p-detail-specs>div:first-child{border-top:0!important}
body.v3 .p-detail-specs dt{font-size:13px!important;font-weight:700!important;color:var(--gold)!important;margin-bottom:2px}
body.v3 .p-detail-specs dd{margin:0!important;font-size:15px!important}
body.v3 .p-detail-steps>div{padding:14px 16px!important;border-radius:14px!important;background:var(--accent-soft)!important;border:0!important}
body.v3 .p-detail-steps b{color:var(--gold)!important;font-size:14px!important}
body.v3 .p-faq details{border-top:1px solid var(--line)!important;padding:12px 0!important;background:none!important;border-radius:0!important}
body.v3 .p-faq summary{font-weight:700!important;font-size:15.5px!important;cursor:pointer}
body.v3 .sales-quotes blockquote,body.v3 blockquote{margin:0!important;padding:16px!important;border-radius:16px!important;background:var(--accent-soft)!important;border:0!important;font-size:15.5px!important;line-height:1.65!important}
body.v3 .sales-list,body.v3 main ul{padding-left:20px}
body.v3 figure{margin:0!important}

/* 버튼 */
body.v3 .p-button,body.v3 .fc-button,body.v3 .lr-button{display:flex!important;align-items:center;justify-content:center;width:100%!important;min-height:54px!important;padding:12px 16px!important;border-radius:16px!important;border:1px solid var(--accent)!important;background:var(--accent)!important;color:#fff!important;font:800 16px/1.3 inherit!important;font-family:inherit!important;letter-spacing:-.01em;text-decoration:none!important;text-align:center;box-shadow:none!important;margin:10px 0 0!important}
body.v3 .p-button.outline,body.v3 .p-button.secondary,body.v3 .fc-button.secondary,body.v3 .lr-button.secondary,body.v3 .lr-button.outline{background:#fff!important;color:var(--accent)!important}
body.v3 .sr-secondary-actions{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:12px}
body.v3 .sr-text-link{font-size:15px!important;font-weight:700!important;color:var(--accent)!important}
body.v3 .p-end-space{height:auto!important;padding-bottom:8px!important}

/* 대표 사진 + 제목(상품 페이지 맨 위) */
.v3-hero{position:relative;height:min(64vh,520px);min-height:380px;overflow:hidden;background:#2b2a26}
.v3-hero img{width:100%;height:100%;object-fit:cover;object-position:50% 18%;display:block;border-radius:0!important}
.v3-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.12),rgba(20,18,14,0) 30%,rgba(20,18,14,.6) 66%,rgba(20,18,14,.92))}
.v3-hero div{position:absolute;left:20px;right:20px;bottom:22px;z-index:1;color:#fff}
.v3-hero small{display:inline-block;margin-bottom:8px;padding:4px 9px;border-radius:9px;background:rgba(255,255,255,.18);backdrop-filter:blur(6px);font-size:13px;font-weight:700;color:#fff!important}
.v3-hero b{display:block;font-size:31px;line-height:1.24;letter-spacing:-.03em;font-weight:800}
.v3-hero em{display:block;margin-top:8px;font-style:normal;font-size:14.5px;color:rgba(255,255,255,.88)}
body.v3.has-hero .p-detail-visual,body.v3.has-hero .lr-collection-photo{display:none!important}
body.v3.hide-title .p-detail-copy>h1,body.v3.hide-title .p-detail-copy>.p-product-tag{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body.v3.has-hero .breadcrumbs{padding-top:14px!important}

/* 아래 고정 버튼 + 누적 조회 */
.v3-cta{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:100%;max-width:480px;padding:12px 18px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(245,241,234,0),#f5f1ea 30%);z-index:40;text-align:center}
.v3-cta a{display:flex;align-items:center;justify-content:center;min-height:58px;border-radius:16px;background:#1f4d3f;color:#fff!important;font:800 17px/1.2 Pretendard,system-ui,sans-serif;letter-spacing:-.01em;text-decoration:none;box-shadow:0 10px 24px rgba(31,77,63,.26)}
.v3-cta p{margin:7px 0 0;font-size:13.5px;color:#5d6a64}
.v3-cta p b{color:#8f5f2b}
.v3-count{margin:22px 16px 0;padding:22px 18px;border-radius:18px;background:#1d2622;color:#fff;text-align:center}
.v3-count[hidden],.v3-cta p[hidden]{display:none}
.v3-count p{margin:0;font-size:13.5px;color:rgba(255,255,255,.7)}
.v3-count strong{display:block;margin:6px 0 2px;font-size:44px;line-height:1.1;letter-spacing:-.02em;font-weight:800;color:#f1e3c8;font-variant-numeric:tabular-nums}
.v3-count strong i{font-style:normal;font-size:20px;margin-left:4px}
.v3-count small{display:block;margin-top:8px;font-size:12.5px;color:rgba(255,255,255,.5)}

/* 예전 머리말·바닥글 대신 쓰는 것들은 home-v3.css 의 h3-top / h3-foot 을 그대로 쓴다 */
body.v3 .h3-foot{margin:36px 18px 0;padding-bottom:28px}
body.v3 .skip,body.v3 .skip-link{position:absolute;left:-9999px}

/* 예전 하단 바: 새 고정 버튼이 있는 페이지에서는 숨기고, 그 밖에서는 같은 폭으로 맞춘다 */
body.v3.has-cta .p-mobilebar{display:none!important}
body.v3 .p-mobilebar{left:50%!important;right:auto!important;transform:translateX(-50%);width:100%!important;max-width:480px!important;background:rgba(245,241,234,.96)!important;border-top:1px solid #e4ddd0!important}
body.v3 .p-mobilebar a{border-radius:14px!important}

/* readable-20261130 */
body.v3 .sr-text-link{display:inline-block;padding:9px 0}body.v3 .h3-foot small{font-size:12.5px}body.v3 .p-mini-note,body.v3 .sr-small,body.v3 figcaption{line-height:1.65}
body.v3 main .v3-hero small{color:#fff!important;font-size:13px!important}
.ff-return{margin:14px 0 4px;padding:12px 14px;border-radius:12px;background:#f6f1e9;font-size:13px;line-height:1.7;color:#5f534b}.ff-return summary{cursor:pointer}.ff-return p{margin:8px 0 0}
/* 무료 궁합 (2026-12-06) */
.fc-person{border:0;padding:0;margin:0 0 20px;min-width:0}
.fc-person legend{font-weight:700;font-size:1.05rem;margin-bottom:8px}
#compat-result .ff-result-top{flex-wrap:wrap;gap:6px}
.ff-year12{margin:28px 0;padding:22px;border-radius:18px;background:#fffaf3;border:1px solid #eadfce}
.ff-year12 h2{font-size:1.15rem;margin:0 0 6px}.ff-year12 p{margin:0 0 12px;color:#6b5d52;font-size:.95rem}
.ff-year12 nav{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.ff-year12 nav a{display:block;text-align:center;padding:10px 4px;border-radius:12px;background:#fff;border:1px solid #e6d8c6;color:#723b43;font-weight:700;text-decoration:none}
