/* 사이트 공통 스타일. Tailwind 유틸리티(assets/tailwind.css) 뒤에 로드됩니다. */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
    flex-shrink: 0;
}
html {
    scroll-behavior: smooth;
    word-break: keep-all;
    overflow-wrap: break-word;
}
body {
    overflow-x: hidden; /* 모바일 가로스크롤 방지 가드레일 */
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tailwind 기본값은 b·strong 을 bolder 로 두어 굵은 글씨 안에서 900 까지 올라갑니다. 700 으로 고정합니다. */
b, strong {
    font-weight: 700;
}

/* 대표메뉴 클릭시 fixed 헤더에 가려지는 현상 완벽 방지 */
section {
    scroll-margin-top: 220px;
}
@media (max-width: 768px) {
    section {
        scroll-margin-top: 130px;
    }
}

/* 하이엔드 소프트 글로우 입체 그림자 시스템 */
.premium-card-shadow {
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.premium-card-shadow:hover {
    box-shadow: 0 35px 80px -10px rgba(15, 23, 42, 0.09), 
                0 0 0 1px rgba(15, 23, 42, 0.04);
    transform: translateY(-4px);
}
.premium-glow-shadow {
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}


@keyframes soft-reveal-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
main > section > div,
.premium-card-shadow,
.premium-glow-shadow {
    animation: soft-reveal-up 0.72s ease both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
}
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: #64748b;
    font-weight: 700;
    transition: color 0.25s ease, transform 0.25s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #b8945a, transparent);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}
.nav-link:hover,
.nav-link.is-active {
    color: #0f172a;
    transform: translateY(-1px);
}
.nav-link.is-active::after {
    width: 100%;
}
.nav-link.is-active::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 999px;
    background: #b8945a;
    box-shadow: 0 0 0 4px rgba(184, 148, 90, 0.12);
}
.scroll-top-btn {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.scroll-top-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.floating-lead-bar {
    opacity: 0;
    transform: translate(-50%, 18px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.floating-lead-bar.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}
.evidence-timeline {
    position: relative;
    padding-left: 44px;
}
.evidence-timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(180deg, #0f172a, #b8945a 48%, #991b1b);
}
.evidence-marker {
    position: absolute;
    left: -34px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #fff;
    transform: translateX(-50%);
}
.case-brief-timeline {
    position: relative;
}
.case-brief-timeline::before {
    content: "";
    position: absolute;
    left: 116px;
    top: 30px;
    bottom: 30px;
    width: 1px;
    background: #e11d48;
    opacity: 0.45;
}
.case-brief-row {
    display: grid;
    grid-template-columns: 96px 40px minmax(0, 1fr);
    align-items: center;
    min-height: 136px;
}
.case-brief-phase {
    text-align: right;
    padding-right: 14px;
}
.case-brief-phase strong,
.case-brief-phase span {
    display: block;
}
.case-brief-phase strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}
.case-brief-phase span {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 4px;
}
.case-brief-node {
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    margin: 0 auto;
    border: 2px solid #e11d48;
    border-radius: 50%;
    background: #f8fafc;
}
.case-brief-card {
    margin: 8px 0;
    padding: 22px 24px;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    background: #fff;
}
.case-brief-card h3 {
    margin: 10px 0 6px;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}
.case-brief-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}
.case-status {
    display: inline-flex;
    padding: 4px 7px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}
.case-status.is-red {
    background: #fff1f2;
    color: #be123c;
}
.response-progress {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
}
.response-progress::before {
    content: "";
    position: absolute;
    left: 7%;
    right: 7%;
    top: 15px;
    height: 2px;
    background: linear-gradient(90deg, #111827 0 35%, #e11d48 35% 50%, #e2e8f0 50% 100%);
}
.response-step {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}
.response-step b {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: 0 auto 10px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    color: #94a3b8;
    font-size: 12px;
}
.response-step.is-done { color: #334155; }
.response-step.is-done b { border-color: #111827; background: #111827; color: #fff; }
.response-step.is-current { color: #be123c; }
.response-step.is-current b { border-color: #e11d48; background: #e11d48; color: #fff; box-shadow: 0 0 0 6px rgba(225,29,72,.1); }
@media (max-width: 640px) {
    .evidence-timeline {
        padding-left: 36px;
    }
    .evidence-timeline::before {
        left: 8px;
    }
    .evidence-marker {
        left: -28px;
        width: 18px;
        height: 18px;
    }
    .case-brief-timeline::before { left: 10px; }
    .case-brief-row { grid-template-columns: 22px minmax(0, 1fr); padding-bottom: 16px; }
    .case-brief-phase { grid-column: 2; text-align: left; padding: 0 0 8px 2px; }
    .case-brief-phase strong, .case-brief-phase span { display: inline; }
    .case-brief-phase span { margin-left: 7px; }
    .case-brief-node { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin-top: 4px; }
    .case-brief-card { grid-column: 2; margin: 0; padding: 18px; }
    .response-progress { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 26px; }
    .response-progress::before { display: none; }
    .response-step { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* 판결문 원본 카드 */
.judgment-paper {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    container-type: inline-size;
}
.judgment-paper:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.45);
}
.judgment-paper img {
    display: block;
    width: 100%;
    height: auto;
}
.judgment-mark {
    position: absolute;
    left: 8.5%;
    right: 8.5%;
    border-radius: 3px;
    background: rgba(255, 228, 0, 0.42);
    mix-blend-mode: multiply;
    pointer-events: none;
}
.judgment-stamp {
    position: absolute;
    top: 4.5%;
    right: 5.5%;
    width: 28%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2%;
    border: 3px solid rgba(214, 40, 40, 0.82);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7), inset 0 0 0 4px rgba(214, 40, 40, 0.55);
    color: rgba(214, 40, 40, 0.9);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    transform: rotate(-12deg);
    mix-blend-mode: multiply;
    pointer-events: none;
}
.judgment-stamp span { font-size: 16px; font-size: 6.5cqw; }
.judgment-stamp strong { font-size: 24px; font-size: 10cqw; font-weight: 800; }
