/**
 * hwaon_workplace_dispute.css — 12번째 전담센터 직장 분쟁 전용 CSS
 *
 * Phase C-2-③ — wd-* 외부 CSS 분리 (사이트 첫 페이지별 전용 CSS 사례)
 * 페이지: html/workplace_dispute.php (G3 가족·일상 마지막)
 * 호출: head.php 조건부 link (basename === 'workplace_dispute.php' 분기)
 *
 * 색상 SSOT (Warm Luxury + 노동 톤):
 *   --hw-navy      #1B2A4A  표준 네이비 (텍스트·보더·다크 배경)
 *   --hw-orange    #EA5514  CTA·강조·화살표
 *   --hw-gold      #C9A96E  eyebrow·메달리온
 *   --hw-cream     #F5F0EB  본문 배경
 *   --wd-labor     #3D5A4A  노동 톤 (workplace 전용)
 *
 * 폰트 SSOT:
 *   --ff-serif-en  Cormorant Garamond  영문 eyebrow
 *   --ff-serif-kr  Noto Serif KR        한글 디스플레이 (h2·h3)
 *   --ff-sans-kr   Pretendard            본문
 *
 * 반응형 분기:
 *   1024px — 태블릿 (grid 2열 + Hero h1 축소)
 *   768px  — 모바일 (grid 1열 + 패딩 축소)
 *   reduced-motion — 애니메이션 박탈
 *
 * 신설: 2026-04-30 Phase C-2-③
 * ════════════════════════════════════════════════════════════════
 */

/* ── CSS 변수 (페이지 한정 scope) ─────────────────────────── */
.wd-hero,
.wd-flow,
.wd-procedure,
.wd-content,
.wd-persona,
.wd-process,
.wd-faq {
    --wd-labor: #3D5A4A;
    --wd-labor-deep: #2B4036;
    --wd-section-pad-y: 96px;
    --wd-section-pad-y-mo: 56px;
    --wd-inner-max: 1180px;
    --wd-inner-pad-x: 28px;
}

/* ── Hero ──────────────────────────────────────────────────── */
.wd-hero {
    position: relative;
    padding: 140px var(--wd-inner-pad-x) 80px;
    background: linear-gradient(135deg, var(--hw-navy, #1B2A4A) 0%, var(--wd-labor) 100%);
    color: #F5F0EB;
    overflow: hidden;
}
.wd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center bottom, rgba(201, 169, 110, 0.06) 0%, transparent 60%);
    pointer-events: none;
}
.wd-hero-inner {
    position: relative;
    max-width: var(--wd-inner-max);
    margin: 0 auto;
    text-align: center;
}
.wd-hero-eyebrow {
    display: inline-block;
    margin-bottom: 24px;
    padding: 6px 16px;
    border: 1px solid rgba(201, 169, 110, 0.4);
    border-radius: 2px;
    color: var(--hw-gold, #C9A96E);
    font-family: 'Cormorant Garamond', 'Noto Serif KR', Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.wd-hero-h1 {
    margin: 0 0 28px;
    font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
    font-size: clamp(28px, 4.4vw, 54px);
    font-weight: 700;
    line-height: 1.30;
    letter-spacing: -0.025em;
    word-break: keep-all;
}
.wd-hero-h1-sub {
    display: block;
    margin-top: 14px;
    color: rgba(245, 240, 235, 0.82);
    font-size: clamp(15px, 1.8vw, 19px);
    font-weight: 500;
    letter-spacing: 0;
}
.wd-hero-h2 {
    max-width: 880px;
    margin: 0 auto;
    color: rgba(245, 240, 235, 0.78);
    font-family: 'Pretendard', system-ui, sans-serif;
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.85;
    word-break: keep-all;
}

/* ── 공통 inner + eyebrow + h2 패턴 ─────────────────────── */
.wd-flow-inner,
.wd-procedure-inner,
.wd-content-inner,
.wd-persona-inner,
.wd-process-inner,
.wd-faq-inner {
    max-width: var(--wd-inner-max);
    margin: 0 auto;
    padding: 0 var(--wd-inner-pad-x);
}
.wd-flow-eyebrow,
.wd-procedure-eyebrow,
.wd-content-eyebrow,
.wd-persona-eyebrow,
.wd-process-eyebrow,
.wd-faq-eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--hw-orange, #EA5514);
    font-family: 'Cormorant Garamond', 'Noto Serif KR', Georgia, serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 2.6px;
    text-transform: uppercase;
}
.wd-flow-h2,
.wd-procedure-h2,
.wd-content-h2,
.wd-persona-h2,
.wd-process-h2,
.wd-faq-h2 {
    margin: 0 0 22px;
    color: var(--hw-navy, #1B2A4A);
    font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -0.02em;
    word-break: keep-all;
}

/* ── § 2 Causal Flow SVG ─────────────────────────────────── */
.wd-flow {
    padding: var(--wd-section-pad-y) 0;
    background: var(--hw-cream, #F5F0EB);
}
.wd-flow-p {
    max-width: 760px;
    margin: 0 auto 36px;
    color: #2C3E5C;
    font-family: 'Pretendard', system-ui, sans-serif;
    font-size: 15.5px;
    line-height: 1.85;
    word-break: keep-all;
}
.wd-flow-svg {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    margin: 0 auto;
}
.wd-flow-fallback {
    margin: 24px auto 0;
    max-width: 760px;
    padding: 18px 22px;
    background: #fff;
    border-left: 3px solid var(--hw-orange, #EA5514);
    color: #2C3E5C;
    font-size: 14px;
    line-height: 1.8;
}

/* ── § 7 Procedure SVG ───────────────────────────────────── */
.wd-procedure {
    padding: var(--wd-section-pad-y) 0;
    background: #FFFFFF;
}
.wd-procedure-p {
    max-width: 760px;
    margin: 0 auto 36px;
    color: #2C3E5C;
    font-family: 'Pretendard', system-ui, sans-serif;
    font-size: 15.5px;
    line-height: 1.85;
    word-break: keep-all;
}
.wd-procedure-svg {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    margin: 0 auto;
}
.wd-procedure-fallback {
    margin: 24px auto 0;
    max-width: 760px;
    padding: 18px 22px;
    background: var(--hw-cream, #F5F0EB);
    border-left: 3px solid var(--wd-labor);
    color: #2C3E5C;
    font-size: 14px;
    line-height: 1.8;
}

/* ── § 3~6 Content (4 inner sections) ────────────────────── */
.wd-content {
    padding: var(--wd-section-pad-y) 0;
    background: var(--hw-cream, #F5F0EB);
}
.wd-content + .wd-content {
    padding-top: 0;
}
.wd-content:nth-of-type(even) {
    background: #FFFFFF;
}
.wd-content-h3 {
    position: relative;
    margin: 44px 0 18px;
    padding-bottom: 10px;
    color: var(--hw-navy, #1B2A4A);
    font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: -0.015em;
    word-break: keep-all;
}
.wd-content-h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--hw-gold, #C9A96E);
}
.wd-content-p {
    margin: 0 0 20px;
    color: #2C3E5C;
    font-family: 'Pretendard', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.85;
    word-break: keep-all;
}
.wd-content-ul {
    margin: 0 0 24px;
    padding: 0 0 0 20px;
    list-style: none;
}
.wd-content-ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 18px;
    color: #2C3E5C;
    font-family: 'Pretendard', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.78;
    word-break: keep-all;
}
.wd-content-ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--hw-orange, #EA5514);
    font-weight: 700;
}
.wd-content-cta {
    position: relative;
    margin: 36px 0 0;
    padding: 28px 32px;
    background: var(--hw-navy, #1B2A4A);
    color: rgba(245, 240, 235, 0.94);
    font-family: 'Pretendard', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.78;
    letter-spacing: -0.005em;
    word-break: keep-all;
    border-radius: 2px;
}
.wd-content-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--hw-gold, #C9A96E);
}

/* ── § 10 Persona ────────────────────────────────────────── */
.wd-persona {
    padding: var(--wd-section-pad-y) 0;
    background: #FFFFFF;
}
.wd-persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.wd-persona-card {
    position: relative;
    padding: 32px 26px;
    background: var(--hw-cream, #F5F0EB);
    border-top: 3px solid var(--wd-labor);
    border-radius: 4px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.wd-persona-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(27, 42, 74, 0.12);
}
.wd-persona-card-num {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--hw-gold, #C9A96E);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.wd-persona-card-h3 {
    margin: 0 0 14px;
    color: var(--hw-navy, #1B2A4A);
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.wd-persona-card-p {
    margin: 0 0 18px;
    color: #2C3E5C;
    font-family: 'Pretendard', system-ui, sans-serif;
    font-size: 14.5px;
    line-height: 1.78;
    word-break: keep-all;
}
.wd-persona-card-ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(27, 42, 74, 0.1);
    padding-top: 16px;
}
.wd-persona-card-ul li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 16px;
    color: var(--wd-labor);
    font-family: 'Pretendard', system-ui, sans-serif;
    font-size: 13.5px;
    line-height: 1.7;
    word-break: keep-all;
}
.wd-persona-card-ul li::before {
    content: '·';
    position: absolute;
    left: 4px;
    top: -2px;
    color: var(--hw-orange, #EA5514);
    font-weight: 700;
    font-size: 18px;
}

/* ── § 11 Process ────────────────────────────────────────── */
.wd-process {
    padding: var(--wd-section-pad-y) 0;
    background: var(--hw-cream, #F5F0EB);
}
.wd-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 40px;
    counter-reset: wd-process-counter;
}
.wd-process-step {
    position: relative;
    padding: 32px 24px;
    background: #FFFFFF;
    border-radius: 2px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--hw-orange, #EA5514) 0%, var(--hw-gold, #C9A96E) 100%) 1;
    border-image-slice: 0 0 1 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.wd-process-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(27, 42, 74, 0.10);
}
.wd-process-step::after {
    content: '→';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hw-orange, #EA5514);
    font-size: 20px;
    font-weight: 700;
    z-index: 2;
}
.wd-process-step:last-child::after {
    display: none;
}
.wd-process-step-num {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 10px;
    background: var(--hw-navy, #1B2A4A);
    color: var(--hw-gold, #C9A96E);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.wd-process-step-h3 {
    margin: 0 0 12px;
    color: var(--hw-navy, #1B2A4A);
    font-family: 'Noto Serif KR', serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.wd-process-step-p {
    margin: 0;
    color: #2C3E5C;
    font-family: 'Pretendard', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.72;
    word-break: keep-all;
}

/* ── § 17 FAQ ─────────────────────────────────────────────── */
.wd-faq {
    padding: var(--wd-section-pad-y) 0;
    background: #FFFFFF;
}
.wd-faq-list {
    max-width: 880px;
    margin: 40px auto 0;
}
.wd-faq-item {
    border-bottom: 1px solid rgba(27, 42, 74, 0.12);
    transition: background 0.3s ease;
}
.wd-faq-item:first-child {
    border-top: 1px solid rgba(27, 42, 74, 0.12);
}
.wd-faq-item[open] {
    background: var(--hw-cream, #F5F0EB);
}
.wd-faq-q {
    position: relative;
    cursor: pointer;
    padding: 22px 56px 22px 24px;
    color: var(--hw-navy, #1B2A4A);
    font-family: 'Noto Serif KR', serif;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: -0.01em;
    list-style: none;
    word-break: keep-all;
    transition: color 0.3s ease;
}
.wd-faq-q::-webkit-details-marker {
    display: none;
}
.wd-faq-q::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hw-orange, #EA5514);
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    transition: opacity 0.3s ease;
}
.wd-faq-item[open] .wd-faq-q::after {
    content: '−';
}
.wd-faq-q:hover {
    color: var(--hw-orange, #EA5514);
}
.wd-faq-a {
    padding: 0 24px 24px;
    color: #2C3E5C;
    font-family: 'Pretendard', system-ui, sans-serif;
    font-size: 14.5px;
    line-height: 1.92;
    word-break: keep-all;
}
.wd-faq-a p {
    margin: 0;
}

/* ── 반응형 분기 1024px (태블릿) ──────────────────────────── */
@media (max-width: 1024px) {
    .wd-hero {
        padding: 110px 24px 70px;
    }
    .wd-persona-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .wd-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 22px;
    }
    .wd-process-step::after {
        display: none;
    }
}

/* ── 반응형 분기 768px (모바일) ──────────────────────────── */
@media (max-width: 768px) {
    .wd-hero,
    .wd-flow,
    .wd-procedure,
    .wd-content,
    .wd-persona,
    .wd-process,
    .wd-faq {
        --wd-section-pad-y: var(--wd-section-pad-y-mo);
        --wd-inner-pad-x: 20px;
    }
    .wd-hero {
        padding: 90px 20px 56px;
    }
    .wd-hero-eyebrow {
        font-size: 11px;
        letter-spacing: 2px;
    }
    .wd-hero-h1 {
        font-size: 28px;
        line-height: 1.32;
    }
    .wd-hero-h1-sub {
        font-size: 14.5px;
    }
    .wd-hero-h2 {
        font-size: 13.5px;
        line-height: 1.78;
    }
    .wd-flow-h2,
    .wd-procedure-h2,
    .wd-content-h2,
    .wd-persona-h2,
    .wd-process-h2,
    .wd-faq-h2 {
        font-size: 22px;
        line-height: 1.4;
    }
    .wd-content-h3 {
        font-size: 17px;
    }
    .wd-persona-grid,
    .wd-process-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .wd-content-cta {
        padding: 16px 18px;
        font-size: 14.5px;
    }
    .wd-faq-q {
        padding: 18px 44px 18px 18px;
        font-size: 15px;
    }
    .wd-faq-q::after {
        right: 18px;
    }
    .wd-faq-a {
        padding: 0 18px 18px;
        font-size: 14px;
    }
}

/* ── reduced-motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .wd-persona-card,
    .wd-faq-q,
    .wd-faq-q::after,
    .wd-faq-item {
        transition: none !important;
    }
    .wd-persona-card:hover {
        transform: none;
    }
}
