/* pages.css — 가이드 상세(page-guide.php)·상담(page-contact.php) 에디토리얼 레이아웃. 토큰은 style.css(:root, design-v3) */

/* ---------- 공통 ---------- */
.ys-ed, .ys-split { background: var(--paper, #fff); color: var(--ink-2, #3A3A3A); }
.ys-ed img, .ys-split img { display: block; width: 100%; border-radius: 0; }
.ys-ed figure, .ys-split figure { margin: 0; }
.ys-ed-col { max-width: 720px; margin: 0 auto; padding: 0 24px; box-sizing: content-box; }
.ys-ed-label { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--muted, #7A7A7A); margin: 0 0 20px; line-height: 1.4; }
.ys-ed h1, .ys-split h1 { font-size: 36px; font-weight: 700; letter-spacing: -.035em; line-height: 1.15; color: var(--ink, #111); margin: 0 0 28px; }
.ys-ed h2, .ys-split h2 { font-size: 28px; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; color: var(--ink, #111); margin: 0 0 24px; }
.ys-ed h2.ys-ed-label, .ys-split h2.ys-ed-label { font-size: 12px; letter-spacing: .22em; font-weight: 600; color: var(--muted, #7A7A7A); }
.ys-ed-lead { font-size: 19px; line-height: 1.65; color: var(--ink, #111); font-weight: 400; letter-spacing: -.01em; margin: 0; }
.ys-ed .ys-crumb, .ys-split .ys-crumb { font-size: 13px; color: var(--muted, #7A7A7A); margin: 0 0 28px; padding: 0; background: none; }
.ys-ed .ys-crumb a, .ys-split .ys-crumb a { color: var(--muted, #7A7A7A); text-decoration: none; }
.ys-ed .ys-crumb a:hover, .ys-split .ys-crumb a:hover { color: var(--ink, #111); }
.ys-ed-sec { padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--line, #E3E1DC); }
.ys-ed-head + .ys-ed-sec, .ys-ed-photos + .ys-ed-sec { border-top: 0; }
.ys-ed-sec p, .ys-ed-sec li, .ys-ed-sec td { font-size: 16px; line-height: 1.75; color: var(--ink-2, #3A3A3A); }
.ys-ed-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.ys-ed-btns .ys-btn { border-radius: 0; box-shadow: none; }

/* 본문 */
.ys-prose p { margin: 0 0 1.1em; }
.ys-prose ul, .ys-prose ol, .ys-ed-list { margin: 0 0 1.2em; padding-left: 1.2em; }
.ys-ed-list { list-style: disc; }
.ys-prose li + li, .ys-ed-list li + li { margin-top: 6px; }
.ys-prose .ys-note { font-size: 14px; color: var(--muted, #7A7A7A); margin-top: 16px; padding: 0; background: none; border: 0; }
.ys-prose strong { color: var(--ink, #111); }

/* 표: 상단 2px 검정, 행 1px 선, 헤더 배경 없음 */
.ys-ed table, .ys-split table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink, #111); margin: 8px 0 20px; font-variant-numeric: tabular-nums; font-size: 15px; background: none; border-radius: 0; }
.ys-ed th, .ys-ed td, .ys-split th, .ys-split td { padding: 14px 12px 14px 0; border: 0; border-bottom: 1px solid var(--line, #E3E1DC); text-align: left; vertical-align: top; background: none; line-height: 1.6; }
.ys-ed thead th, .ys-split thead th, .ys-ed tbody th, .ys-split tbody th { color: var(--ink, #111); font-weight: 700; background: none; }
.ys-ed tbody tr, .ys-split tbody tr, .ys-ed .ys-table tbody tr:nth-child(even), .ys-split .ys-table tbody tr:nth-child(even) { background: none; }
.ys-ed .ys-table, .ys-split .ys-table { min-width: 0; }
.ys-split tbody th { white-space: nowrap; width: 1%; padding-right: 24px; }
.ys-split .ys-table-wrap, .ys-ed .ys-table-wrap { border: 0; border-radius: 0; box-shadow: none; overflow-x: auto; }
@media (max-width: 767px) {
    .ys-prose table { display: block; overflow-x: auto; }
    .ys-prose table th, .ys-prose table td { min-width: 96px; }
}

/* ---------- 가이드 상세 ---------- */
.ys-ed-cover { height: 60vh; min-height: 300px; overflow: hidden; background: var(--paper-2, #F4F2EE); }
.ys-ed-cover img { height: 100%; object-fit: cover; }
.ys-ed-head { padding-top: 40px; padding-bottom: 48px; }

.ys-ed-photos { display: grid; grid-template-columns: 1fr; gap: 0; margin: 24px 0 56px; }
.ys-ed-photos img { height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ys-ed-photos.is-full img { aspect-ratio: 16 / 9; }

/* FAQ: 상하 1px 선, 오른쪽 + / − */
.ys-ed .ys-faq-list, .ys-split .ys-faq-list { border-top: 1px solid var(--ink, #111); }
.ys-ed .ys-faq-item, .ys-split .ys-faq-item { border: 0; border-bottom: 1px solid var(--line, #E3E1DC); border-radius: 0; background: none; box-shadow: none; padding: 0; margin: 0; }
.ys-ed .ys-faq-item summary, .ys-split .ys-faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; margin: 0; background: none; position: static; }
.ys-ed .ys-faq-item summary::-webkit-details-marker, .ys-split .ys-faq-item summary::-webkit-details-marker { display: none; }
.ys-ed .ys-faq-item summary h3, .ys-split .ys-faq-item summary h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.5; color: var(--ink, #111); margin: 0; }
.ys-ed .ys-faq-item summary::after, .ys-split .ys-faq-item summary::after { content: "+"; position: static; flex: none; font-size: 22px; font-weight: 300; line-height: 1; color: var(--ink, #111); background: none; border: 0; width: auto; height: auto; transform: none; }
.ys-ed .ys-faq-item[open] summary::after, .ys-split .ys-faq-item[open] summary::after { content: "\2212"; transform: none; }
.ys-ed .ys-faq-item p, .ys-split .ys-faq-item p { margin: 0; padding: 0 40px 24px 0; font-size: 16px; line-height: 1.75; color: var(--ink-2, #3A3A3A); }

/* 전화 상담 블록 */
.ys-ed-call { background: var(--ink, #111); color: #fff; padding: 72px 0; margin-top: 32px; }
.ys-ed-call h2 { color: #fff; }
.ys-ed-call p { color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.75; margin: 0; }
.ys-ed-call .ys-ed-label { color: rgba(255,255,255,.55); }
.ys-ed-btn-inv { background: transparent; color: #fff; border: 1px solid #fff; }
.ys-ed-btn-inv:hover { background: #fff; color: var(--ink, #111); }

/* 이어서 읽기 */
.ys-ed-next { padding: 64px 0 80px; }
.ys-ed-next-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 2px; }
.ys-ed-next-grid a { display: block; color: var(--ink, #111); text-decoration: none; }
.ys-ed-next-grid img { aspect-ratio: 4 / 5; object-fit: cover; transition: opacity .3s; }
.ys-ed-next-grid a:hover img { opacity: .85; }
.ys-ed-next-grid a > span { display: block; padding: 14px 12px 0 0; font-size: 15px; font-weight: 600; letter-spacing: -.02em; line-height: 1.45; }
.ys-ed-next-grid a:hover > span { text-decoration: underline; text-underline-offset: 3px; }

/* 데스크톱 얇은 고정 전화 링크 */
.ys-ed-fixcall { display: none; }

@media (min-width: 768px) {
    .ys-ed-photos { grid-template-columns: 1fr 1fr; margin: 32px 0 72px; }
    .ys-ed-photos.is-full { grid-template-columns: 1fr; }
    .ys-ed-photos.is-full img { aspect-ratio: 21 / 9; }
    .ys-ed-next-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
    .ys-ed h1, .ys-split h1 { font-size: 56px; }
    .ys-ed h2, .ys-split h2 { font-size: 36px; }
    .ys-ed-lead { font-size: 22px; }
    .ys-ed-cover { height: 66vh; }
    .ys-ed-head { padding-top: 56px; padding-bottom: 72px; }
    .ys-ed-sec { padding-top: 72px; padding-bottom: 72px; }
    .ys-ed-call { padding: 112px 0; }
    .ys-ed-next { padding: 96px 0 120px; }
    .ys-ed-fixcall { display: block; position: fixed; right: 0; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; z-index: 40; padding: 18px 10px; background: var(--brick, #8C3B2A); color: #fff; font-size: 13px; letter-spacing: .08em; text-decoration: none; }
    .ys-ed-fixcall:hover { background: var(--brick-dark, #6E2C1F); }
}

/* ---------- 상담: 50/50 분할 ---------- */
.ys-split { display: grid; grid-template-columns: minmax(0, 1fr); }
.ys-split > * { min-width: 0; }
.ys-split-photo { height: 46vh; min-height: 260px; overflow: hidden; background: var(--paper-2, #F4F2EE); }
.ys-split-photo img { height: 100%; object-fit: cover; }
.ys-split-body { padding: 40px 20px 72px; max-width: 640px; }
.ys-split-body > .ys-ed-sec { padding-left: 0; padding-right: 0; }
.ys-split-body .ys-ed-lead + .ys-ed-sec { border-top: 0; }
.ys-split-tel { display: block; white-space: nowrap; font-size: clamp(34px, 9vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--ink, #111); text-decoration: none; margin: 0 0 28px; font-variant-numeric: tabular-nums; }
.ys-split-tel:hover { color: var(--brick, #8C3B2A); }
@media (min-width: 960px) {
    .ys-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
    .ys-split-photo { position: sticky; top: var(--header-h, 72px); height: calc(100vh - var(--header-h, 72px)); }
    .ys-split-body { padding: 72px 64px 120px; }
    .ys-split-tel { font-size: clamp(40px, 4vw, 60px); }
}
@media (min-width: 1440px) { .ys-split-body { padding-left: 96px; } }
