/* =========================================
   수출서류 점검·작성 페이지 (export-docs.html)
   policy-finance.css 의 .pf-* 클래스를 함께 쓰고, 이 페이지 전용은 .ed-* 로 둔다.
   ========================================= */

.ed-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

#flow, #docs, #forms, #laws { scroll-margin-top: 70px; }
.ed-law-grp { scroll-margin-top: 80px; }
.ed-lead { max-width: 820px; text-align: center; color: #555; line-height: 1.75; }
.ed-section-flow { padding-bottom: 50px; }
.ed-section-docs { background: #faf8f2; border-top: 1px solid #eee7d3; border-bottom: 1px solid #eee7d3; }
.ed-hero { padding-bottom: 64px; }

/* ── 면책: 상단 경고 상자(항상 펼침) ── */
.ed-warn {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 26px auto 0;
    padding: 18px 22px;
    max-width: 980px;
    background: #fffaf0;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    color: #3d3214;
    font-size: 1rem;
    line-height: 1.7;
}
.ed-warn > i { color: #a8791f; font-size: 1.35rem; margin-top: 3px; flex: none; }
.ed-warn p { margin: 0; }
.ed-warn strong { color: #1a1a1a; }
.ed-warn strong:first-child { color: #8a5a00; }

/* ── 면책: 하단 전문(회색 상자) ── */
.ed-warn-full { margin: 36px 0 0; padding: 20px 22px; background: #f3f4f6; border: 1px solid #dfe2e6; border-radius: 10px; color: #444; font-size: 0.92rem; line-height: 1.8; }
.ed-warn-full-t { margin: 0 0 6px; font-weight: 700; color: var(--primary-color); }
.ed-warn-full-t i { color: var(--secondary-color); margin-right: 6px; }
.ed-warn-full p:last-child { margin: 0; }

/* ── 1. 거래 흐름 ── */
.ed-flow { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.ed-flow li { position: relative; display: flex; flex-direction: column; gap: 8px; }
.ed-flow li:not(:last-child)::after { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: -16px; top: 46px; color: var(--secondary-color); font-size: 0.9rem; }
.ed-flow a[data-doc-link]:not(.ed-flow-branch) { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; background: var(--primary-color); color: #fff; border-radius: 10px; border-bottom: 3px solid var(--secondary-color); transition: transform .2s, box-shadow .2s; }
.ed-flow a[data-doc-link]:not(.ed-flow-branch):hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(13, 30, 56, .25); }
.ed-flow-n { width: 28px; height: 28px; border-radius: 50%; background: var(--secondary-color); color: var(--primary-color); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.ed-flow strong { font-size: 1.02rem; }
.ed-flow-ko { font-size: .85rem; opacity: .85; }
.ed-flow-d { margin-top: 6px; font-size: .82rem; line-height: 1.5; color: #f3dfae; }
.ed-flow-branch { display: block; padding: 8px 10px; border: 1px dashed var(--secondary-color); border-radius: 8px; background: #fffaf0; color: #6b5a30; font-size: .82rem; font-weight: 700; text-align: center; }
.ed-flow-branch:hover { background: #fff1d1; color: var(--primary-color); }
.ed-chain { margin-top: 28px; }
.ed-chain strong { display: block; margin-bottom: 6px; color: var(--primary-color); }

/* ── 2. 서류 탭 ── */
.ed-tabs { margin-top: 30px; }
.ed-tab-n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: #e9ecef; color: #666; font-size: .75rem; font-weight: 700; vertical-align: 1px; }
.pf-tab.is-active .ed-tab-n { background: var(--secondary-color); color: var(--primary-color); }
.ed-tabs .pf-tab:not(:last-child)::after { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: 14px; color: #c9b88c; font-size: .8rem; }

.ed-intro { background: #fff; border: 1px solid #e5e5e5; border-top: 4px solid var(--secondary-color); border-radius: 10px; padding: 22px 26px; }
.ed-intro-step { margin: 0 0 2px; font-size: .82rem; font-weight: 700; color: var(--gold-text, #8a6a1f); }
.ed-intro h4 { margin: 0 0 12px; font-size: 1.45rem; color: var(--primary-color); }
.ed-intro h4 span { font-size: .95rem; font-weight: 500; color: #777; }
.ed-intro-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px; margin: 0; }
.ed-intro-facts dt { font-size: .78rem; color: #999; }
.ed-intro-facts dd { margin: 2px 0 0; font-size: .92rem; color: #333; }
.ed-intro-tip { margin: 14px 0 0; padding: 10px 14px; background: #f7f8fa; border-radius: 8px; font-size: .92rem; color: #444; }
.ed-intro-tip i { color: var(--secondary-color); margin-right: 4px; }

/* 계약서 ↔ PO·PI 갈래 */
.ed-route { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.ed-route-btn { font-family: inherit; cursor: pointer; font-size: .92rem; font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--primary-color); background: #fff; color: var(--primary-color); }
.ed-route-btn:hover { background: #eef2f8; }
.ed-route-btn.is-active { background: var(--primary-color); color: #fff; }
.ed-route-btn.is-active i { color: var(--secondary-color); }
.ed-route-btn:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 2px; }
.ed-route-hint { margin: 10px 0 0; font-size: .88rem; color: #666; }
.ed-routepanel[hidden] { display: none; }

/* ── 샘플 보고서 ── */
.ed-sample { margin-top: 24px; background: #fff; border: 1px solid #e3dccb; border-radius: 12px; padding: 24px 26px; }
.ed-sample-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 10px 14px; background: #fff4e0; border: 1px solid #ecd39b; border-radius: 8px; font-size: .9rem; line-height: 1.6; color: #5c4a1c; }
.ed-sample-note-end { margin: 22px 0 0; }
.ed-tag { flex: none; padding: 1px 10px; border-radius: 999px; background: var(--primary-color); color: #fff; font-size: .78rem; font-weight: 700; line-height: 1.8; }
.ed-sample-head h5 { margin: 0 0 12px; font-size: 1.2rem; color: var(--primary-color); }
.ed-over { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 20px; margin: 0 0 14px; }
.ed-over dt { font-size: .76rem; color: #999; }
.ed-over dd { margin: 1px 0 0; font-size: .9rem; color: #333; }
.ed-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.ed-badges li { padding: 5px 12px; border-radius: 999px; font-size: .85rem; border: 1px solid; }
.ed-badges strong { font-size: 1rem; }
.ed-b-h { background: #fdecea; border-color: #f2b8b0 !important; color: #a12a1b; }
.ed-b-m { background: #fff4dc; border-color: #ead095 !important; color: #7a5a10; }
.ed-b-l { background: #f1f2f4; border-color: #d7dbe0 !important; color: #555; }
.ed-b-x { background: #eef2f8; border-color: #c9d4e6 !important; color: var(--primary-color); }

.ed-sample-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 26px; margin-top: 22px; align-items: start; }

.ed-draft { background: #f7f8fa; border: 1px solid #e3e6ea; border-radius: 10px; position: sticky; top: 90px; }
.ed-draft summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ed-draft summary::-webkit-details-marker { display: none; }
.ed-draft-t { font-weight: 700; color: var(--primary-color); }
.ed-draft-s { flex-basis: 100%; font-size: .8rem; color: #777; }
.ed-draft-btn { margin-left: auto; font-size: .76rem; font-weight: 700; color: #7a6221; background: #f6f1e2; border: 1px solid #e3d8b5; border-radius: 14px; padding: 2px 10px; order: 2; }
.ed-draft-btn::before { content: "펼치기 ▾"; }
.ed-draft[open] .ed-draft-btn::before { content: "접기 ▴"; }
.ed-draft-body { padding: 0 16px 14px; }
.ed-dl { margin: 0; }
.ed-dl dt { margin-top: 10px; font-size: .76rem; font-weight: 700; color: #888; }
.ed-dl dd { margin: 2px 0 0; font-size: .86rem; line-height: 1.55; color: #333; overflow-wrap: anywhere; }
.ed-dl dd.ed-bad { padding: 2px 6px; margin-left: -6px; background: #fdecea; border-left: 3px solid #c62828; border-radius: 3px; }
.ed-draft-key { margin: 12px 0 0; font-size: .76rem; color: #888; display: flex; align-items: center; gap: 6px; }
.ed-bad-key { display: inline-block; width: 14px; height: 10px; background: #fdecea; border-left: 3px solid #c62828; }
.ed-draft-note { margin: 10px 0 0; font-size: .8rem; color: #666; line-height: 1.6; }

.ed-result { min-width: 0; }
.ed-h { margin: 26px 0 10px; font-weight: 700; font-size: 1rem; color: var(--primary-color); padding-left: 10px; border-left: 3px solid var(--secondary-color); }
.ed-h.ed-h-first { margin-top: 0; }
.ed-h small { font-weight: 400; font-size: .8rem; color: #888; margin-left: 6px; }
.ed-verdict { padding: 12px 16px; background: #f7f8fa; border-radius: 8px; }
.ed-verdict p { margin: 0 0 6px; font-size: .93rem; line-height: 1.7; color: #333; }
.ed-verdict p:last-child { margin: 0; }

.ed-ok { font-weight: 700; color: #2e7d32; }
.ed-ok::before { content: "✓ "; }
.ed-ng { font-weight: 700; color: #c62828; }
.ed-ng::before { content: "✕ "; }
.ed-calc td:nth-child(3), .ed-calc td:nth-child(4) { white-space: nowrap; }

.ed-quote { display: block; margin-top: 6px; padding: 4px 8px; background: #fff; border: 1px dashed #d3d6db; border-radius: 4px; font-weight: 400; font-size: .8rem; color: #555; line-height: 1.5; }
.ed-quote-none { color: #999; font-style: italic; }
.ed-risk tbody th { width: 26%; }
.ed-risk td:nth-child(3) { width: 64px; text-align: center; }
.ed-lv { display: inline-block; min-width: 30px; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: .85rem; text-align: center; }
.ed-lv-h { background: #c62828; color: #fff; }
.ed-lv-m { background: #f2c766; color: #4a3500; }
.ed-lv-l { background: #e3e6ea; color: #444; }

.ed-clauses { display: grid; gap: 10px; }
.ed-clause { position: relative; padding: 12px 14px 12px 16px; background: #fbfaf6; border: 1px solid #e8e1cd; border-left: 3px solid var(--secondary-color); border-radius: 6px; }
.ed-clause-k { margin: 0 0 4px; font-size: .8rem; font-weight: 700; color: var(--gold-text, #8a6a1f); padding-right: 96px; }
.ed-clause-en { margin: 0; font-size: .9rem; line-height: 1.65; color: #222; font-family: Georgia, 'Times New Roman', serif; }
.ed-copy { position: absolute; top: 8px; right: 10px; font-family: inherit; cursor: pointer; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 14px; border: 1px solid var(--primary-color); background: #fff; color: var(--primary-color); }
.ed-copy:hover, .ed-copy.is-done { background: var(--primary-color); color: #fff; }
.ed-ref { text-align: left; color: #777; line-height: 1.7; }

/* ── 자가 점검 체크리스트 ── */
.ed-checklist { margin-top: 26px; background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 22px 24px; }
.ed-check-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ed-check-head h5 { margin: 0; font-size: 1.12rem; color: var(--primary-color); }
.ed-check-head h5 i { color: var(--secondary-color); margin-right: 4px; }
.ed-check-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-check-btns .pf-btn { font-family: inherit; cursor: pointer; }
.ed-check-hint { margin: 8px 0 14px; font-size: .85rem; color: #777; }
.ed-check { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.ed-check label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #eceae2; border-radius: 8px; cursor: pointer; height: 100%; }
.ed-check label:hover { border-color: var(--secondary-color); }
.ed-check input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary-color); cursor: pointer; }
.ed-check-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #eef2f8; color: var(--primary-color); font-size: .76rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.ed-check-txt { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; line-height: 1.55; color: #555; }
.ed-check-txt strong { color: var(--primary-color); font-size: .93rem; }
.ed-check input:checked ~ .ed-check-txt { color: #999; }
.ed-check input:checked ~ .ed-check-txt strong { text-decoration: line-through; text-decoration-color: var(--secondary-color); }
.ed-check label:has(input:checked) { background: #f7f8fa; }

/* PO·PI 현실적 대안 */
.ed-alt { margin-top: 24px; padding: 20px 22px; background: #fff; border: 1px solid #e6e1d4; border-left: 4px solid var(--secondary-color); border-radius: 10px; }
.ed-alt h6 { margin: 0 0 10px; font-size: 1.05rem; color: var(--primary-color); }
.ed-alt h6 i { color: var(--secondary-color); margin-right: 4px; }
.ed-alt-list { margin: 0 0 0 1.3em; padding: 0; }
.ed-alt-list li { margin-bottom: 6px; font-size: .92rem; line-height: 1.65; color: #444; }

/* ── 기관 서식 바로가기 상자 ── */
.ed-forms { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; padding: 20px 24px; background: #fff; border: 2px solid var(--secondary-color); border-radius: 12px; }
.ed-forms h6 { margin: 0 0 4px; font-size: 1.05rem; color: var(--primary-color); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ed-forms h6 i { color: var(--secondary-color); }
.ed-forms-text p { margin: 0; font-size: .9rem; color: #555; }
.ed-forms-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-forms-btns .pf-btn { font-weight: 700; }
.ed-forms-note { grid-column: 1 / -1; margin: 0; font-size: .82rem; line-height: 1.6; color: #777; }
.ed-forms-note i { color: var(--secondary-color); margin-right: 3px; }
.ed-forms-note-wide { margin-top: 16px; }
.ed-ext-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #eef2f8; color: var(--primary-color); font-size: .72rem; font-weight: 700; letter-spacing: 0; vertical-align: 1px; }

.ed-soon { margin-top: 30px; }
.ed-soon i { color: var(--secondary-color); margin-right: 4px; }

/* ── 3. 참고 사이트 ── */
.ed-sites { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-left: auto; margin-right: auto; gap: 20px; margin-top: 30px; }

/* ── 4. 관련 법령·규정 ── */
.ed-section-laws { background: #faf8f2; border-top: 1px solid #eee7d3; }
.ed-law-feature { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 980px; margin: 30px auto 0; padding: 24px 28px; background: var(--primary-color); color: #fff; border-radius: 12px; border-bottom: 4px solid var(--secondary-color); }
.ed-law-feature-k { margin: 0 0 4px; font-size: .82rem; font-weight: 700; color: var(--secondary-color); }
.ed-law-feature h4 { margin: 0 0 8px; font-size: 1.35rem; color: #fff; }
.ed-law-feature h4 span { font-size: .92rem; font-weight: 500; opacity: .8; }
.ed-law-feature p { margin: 0; line-height: 1.7; color: #e6ebf3; }
.ed-law-feature .ed-law-feature-sub { margin-top: 8px; font-size: .88rem; }
.ed-law-feature-sub a { color: #f3dfae; text-decoration: underline; text-underline-offset: 3px; }
.ed-law-feature-btn { flex: none; white-space: nowrap; }
.ed-law-how { max-width: 980px; margin: 18px auto 0; padding: 12px 16px; background: #fff; border: 1px solid #eee7d3; border-radius: 8px; font-size: .9rem; line-height: 1.7; color: #555; }
.ed-law-how > i { color: var(--secondary-color); margin-right: 4px; }
.ed-law-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 0; }
.ed-law-jump a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #d9cfb4; border-radius: 999px; background: #fff; color: var(--primary-color); font-size: .88rem; font-weight: 700; }
.ed-law-jump a:hover { border-color: var(--secondary-color); background: #fff1d1; }
.ed-law-jump a span, .ed-law-n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--secondary-color); color: var(--primary-color); font-size: .75rem; font-weight: 700; }
.ed-law-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 26px; align-items: start; }
.ed-law-grp { background: #fff; border: 1px solid #e5e5e5; border-top: 4px solid var(--secondary-color); border-radius: 10px; padding: 20px 22px; }
.ed-law-grp h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 12px; font-size: 1.12rem; color: var(--primary-color); }
.ed-law-n { width: 24px; height: 24px; font-size: .8rem; }
.ed-law-kind { font-size: .78rem; font-weight: 500; color: #888; }
.ed-law-list { list-style: none; margin: 0; padding: 0; }
.ed-law-list li { padding: 10px 0; border-top: 1px dashed #e3e3e3; line-height: 1.55; }
.ed-law-list li:first-child { border-top: 0; padding-top: 2px; }
.ed-law-a { font-weight: 700; color: var(--primary-color); overflow-wrap: anywhere; }
a.ed-law-a:hover { color: #8a6a1f; text-decoration: underline; text-underline-offset: 3px; }
.ed-law-a small { font-weight: 500; color: #777; font-size: .8rem; }
.ed-law-nolink { color: #444; }
.ed-law-d { display: block; margin-top: 3px; font-size: .88rem; color: #555; }
.ed-chk, .ed-pay { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; font-size: .7rem; font-weight: 700; vertical-align: 1px; white-space: nowrap; }
.ed-chk { background: #fdecea; color: #a5281b; }
.ed-pay { background: #f1f3f5; color: #555; }
.ed-law-note { max-width: none; }

/* ── 무역사기 주의(이메일 계좌변경 사기) ── */
#fraud, #compact { scroll-margin-top: 80px; }
.ed-fraud-wrap { padding: 26px 0 0; }
.ed-fraud { max-width: 980px; margin: 0 auto; padding: 22px 26px; background: #fff7f5; border: 2px solid #c0392b; border-radius: 12px; color: #3a2a26; }
.ed-fraud-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.ed-fraud-head > i { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #c0392b; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.ed-fraud-k { margin: 0; font-size: .82rem; font-weight: 700; color: #a52a1f; }
.ed-fraud h3 { margin: 2px 0 0; font-size: 1.3rem; line-height: 1.4; color: var(--primary-color); }
.ed-fraud-lead { margin: 0 0 16px; font-size: .96rem; line-height: 1.75; }
.ed-fraud-lead strong { color: #8f2318; }
.ed-fraud-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 26px; }
.ed-fraud-h { margin: 0 0 8px; font-weight: 700; color: var(--primary-color); padding-left: 10px; border-left: 3px solid #c0392b; }
.ed-fraud-h small { font-weight: 400; color: #8a6a1f; font-size: .8rem; margin-left: 4px; }
.ed-fraud-list { margin: 0 0 0 1.3em; padding: 0; }
.ed-fraud-list li { margin-bottom: 7px; font-size: .92rem; line-height: 1.65; }
.ed-fraud-list strong { color: #1a1a1a; }
.ed-clause-fraud { border-left-color: #c0392b; background: #fff; }
.ed-fraud-ko { margin: 10px 0 0; font-size: .88rem; line-height: 1.65; color: #444; }
.ed-fraud-note { margin: 10px 0 0; padding: 10px 12px; background: #fff; border: 1px dashed #d9a39b; border-radius: 8px; font-size: .84rem; line-height: 1.65; color: #555; }
.ed-fraud-note i { color: #c0392b; margin-right: 3px; }
.ed-fraud-where { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: .88rem; font-weight: 700; color: #6b2a22; }
.ed-fraud-where i { color: #c0392b; }
.ed-fraud-where a { padding: 5px 12px; border: 1px solid #e3b5ae; border-radius: 999px; background: #fff; color: var(--primary-color); font-weight: 700; }
.ed-fraud-where a:hover { border-color: #c0392b; background: #fdecea; }
.ed-fraud-article { margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed #e3b5ae; }
.ed-fraud-article a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid #c0392b; border-radius: 999px; background: #fff; color: #a52a1f; font-size: .88rem; font-weight: 700; transition: var(--transition); }
.ed-fraud-article a:hover { background: #c0392b; color: #fff; }
.ed-hero .ed-hero-fraud { border-color: #e8a29a; color: #fff; }
.ed-hero .ed-hero-fraud i { color: #f3b1a8; margin-right: 4px; }
.ed-hero .ed-hero-make { border-color: var(--secondary-color); }
.ed-hero .ed-hero-make i { margin-right: 4px; }

/* ── 한 장짜리 간이계약서 ── */
.ed-compact { margin-top: 26px; padding: 22px 24px; background: #fff; border: 1px solid #e6e1d4; border-top: 4px solid var(--primary-color); border-radius: 10px; }
.ed-compact-k { margin: 0 0 2px; font-size: .82rem; font-weight: 700; color: var(--gold-text, #8a6a1f); }
.ed-compact-k i { color: var(--secondary-color); margin-right: 3px; }
.ed-compact h5 { margin: 0 0 8px; font-size: 1.2rem; color: var(--primary-color); }
.ed-compact-lead { margin: 0 0 14px; font-size: .93rem; line-height: 1.7; color: #444; }
.ed-compact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 24px; }
.ed-compact-list { margin: 0; padding: 0; list-style: none; counter-reset: cpt; display: grid; gap: 6px; }
.ed-compact-list li { counter-increment: cpt; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; padding: 8px 10px; background: #f7f8fb; border-radius: 6px; font-size: .88rem; line-height: 1.55; }
.ed-compact-list li::before { content: counter(cpt); grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-color); color: #fff; font-size: .74rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.ed-compact-list strong { color: var(--primary-color); }
.ed-compact-list span { color: #555; }
.ed-compact-list li.is-key { background: #fff3f1; outline: 1px solid #e3b5ae; }
.ed-compact-list li.is-key::before { background: #c0392b; }
.ed-compact-why { padding: 14px 16px; background: #fbfaf6; border: 1px solid #ece4cc; border-radius: 8px; }
.ed-compact-h { margin: 0 0 6px; font-weight: 700; color: var(--primary-color); }
.ed-compact-why li { font-size: .9rem; line-height: 1.6; }
.ed-compact-note { margin: 14px 0 0; font-size: .84rem; line-height: 1.65; color: #555; }
.ed-compact-note i { color: var(--secondary-color); margin-right: 3px; }

/* 인쇄 전용 요소는 화면에서 숨긴다 */
.ed-print-head, .ed-print-foot { display: none; }

/* ── 반응형 ── */
@media (max-width: 1100px) {
    .ed-flow { grid-template-columns: repeat(3, 1fr); }
    .ed-flow li:nth-child(3)::after { display: none; }
    .ed-sample-grid { grid-template-columns: 1fr; }
    .ed-draft { position: static; }
}

@media (max-width: 768px) {
    .ed-hero { padding: 34px 0 30px; }
    .ed-hero h2 { margin-bottom: 10px; }
    .ed-hero p { margin-bottom: 18px; }
    .ed-hero .pf-hero-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .ed-hero .pf-hero-btns .btn { padding: 10px 8px; font-size: .9rem; }
    .ed-warn { margin-top: 16px; padding: 14px 16px; font-size: .95rem; gap: 10px; }
    .ed-warn > i { font-size: 1.15rem; }
    .container > .ed-warn { margin-left: 0; margin-right: 0; }
    .ed-flow { grid-template-columns: 1fr; gap: 26px; }
    .ed-flow li:not(:last-child)::after { content: "\f078"; right: auto; left: 50%; top: auto; bottom: -21px; transform: translateX(-50%); display: block; }
    .ed-flow li:nth-child(3)::after { display: block; }
    .ed-lead { text-align: left; }
    .ed-tabs .pf-tab:not(:last-child)::after { margin-left: 10px; }
    .ed-intro { padding: 18px 16px; }
    .ed-intro h4 { font-size: 1.25rem; }
    .ed-sample { padding: 18px 14px; }
    .ed-sample-grid { gap: 18px; }
    .ed-risk tbody th, .ed-risk td:nth-child(3) { width: 100%; text-align: left; }
    .ed-checklist { padding: 18px 14px; }
    .ed-check { grid-template-columns: 1fr; }
    .ed-check-btns { width: 100%; }
    .ed-check-btns .pf-btn { flex: 1; justify-content: center; }
    .ed-forms { grid-template-columns: 1fr; padding: 18px 16px; }
    .ed-forms-btns { flex-direction: column; }
    .ed-forms-btns .pf-btn { justify-content: center; }
    .ed-sites { grid-template-columns: 1fr; }
    .ed-clause-k { padding-right: 0; }
    .ed-copy { position: static; margin-top: 8px; }
    .ed-route-btn { flex: 1 1 100%; }
    .ed-law-feature { flex-direction: column; align-items: stretch; padding: 20px 18px; gap: 16px; }
    .ed-law-feature-btn { text-align: center; white-space: normal; }
    .ed-law-jump { justify-content: flex-start; }
    .ed-law-jump a { padding: 6px 11px; font-size: .84rem; }
    .ed-law-grid { grid-template-columns: 1fr; gap: 16px; }
    .ed-fraud-wrap { padding-top: 16px; }
    .ed-fraud { padding: 18px 16px; }
    .ed-fraud-head > i { width: 38px; height: 38px; font-size: 1.05rem; }
    .ed-fraud h3 { font-size: 1.1rem; }
    .ed-fraud-grid, .ed-compact-grid { grid-template-columns: 1fr; }
    .ed-hero .pf-hero-btns .ed-hero-fraud { grid-column: auto; }
    .ed-compact { padding: 18px 14px; }
    .ed-law-grp { padding: 16px 14px; }
}

/* ── 인쇄(PDF 저장) ── */
@media print {
    @page { margin: 14mm 12mm 18mm; }
    body { background: #fff; font-size: 10.5pt; }
    header, nav, .skip-link, .pf-floatnav, .pf-cta, .main-footer, .install-guide, #installGuide,
    .ed-hero, .ed-warn-top, #fraud, #flow, .ed-tabs, .ed-section-docs > .container > .section-header, .ed-section-docs > .container > .pf-lead,
    .ed-check-btns, .ed-copy, .ed-route, .ed-route-hint, .ed-forms-btns, .ed-soon, #forms .section-header, #forms .pf-lead, .ed-sites, .ed-forms-note-wide, .pf-uplink,
    #laws .section-header, #laws .pf-lead, .ed-law-feature, .ed-law-how, .ed-law-jump, .ed-law-grid { display: none !important; }
    .ed-section-laws { background: #fff; border: 0; }
    .pf-section { padding: 0 !important; }
    .ed-section-docs { background: #fff; border: 0; }
    .ed-print-head { display: block; margin: 0 0 12px; padding: 10px 14px; border: 2px solid #b8892f; border-radius: 6px; font-size: 9.5pt; line-height: 1.6; }
    .ed-print-head p { margin: 0; }
    .ed-print-meta { margin-top: 4px !important; color: #555; font-size: 8.5pt; }
    .ed-print-foot { display: block; position: fixed; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font-size: 8pt; color: #666; border-top: 1px solid #ccc; padding-top: 3px; background: #fff; }
    .ed-sample, .ed-checklist, .ed-intro, .ed-forms { border-color: #bbb; break-inside: auto; }
    .ed-sample-grid { grid-template-columns: 1fr; }
    .ed-draft { position: static; }
    .ed-draft-btn { display: none; }
    .pf-table tr, .ed-clause, .ed-check li { break-inside: avoid; }
    .ed-check { grid-template-columns: 1fr 1fr; }
    .ed-warn-full { break-inside: avoid; }
    a[href^="http"]::after { content: ""; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── 계약서 초안 작성기로 가는 안내(계약서 탭 끝) ── */
.ed-builder-link strong { display: block; margin-bottom: 4px; color: var(--primary-color); font-size: 1rem; }
.ed-builder-link p { margin: 0 0 10px; }
.ed-builder-link .pf-btn { font-weight: 700; }
.ed-builder-link .pf-btn i { margin: 0 0 0 4px; color: inherit; }
