.detail-container {
    padding-bottom: var(--spacing-bottom-2xlg);
}
.detail-container:has(+ .btn-group),
.detail-container:has(+ .btn-page) {
    padding-bottom: 0;
}

.detail-container .title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    gap: var(--number-5);
    padding-bottom: var(--spacing-bottom-xlg);
}
.detail-container .title-group {
    display: flex;
    flex-direction: column;
    gap: var(--number-5);
}
.detail-container .section-tit {
    font-family: var(--font-family-title);
    font-size: var(--font-size-display-lg);
    color: var(--color-font-neutral-strong);
    font-style: normal;
    font-weight: var(--font-weight-bold);
    line-height: 130%;
    letter-spacing: -0.0625rem;
}
.detail-container .description {
    font-family: var(--font-family-body);
    font-size: var(--font-size-body-lg);
    color: var(--color-font-neutral-default);
    font-style: normal;
    font-weight: var(--font-weight-regular);
    line-height: 140%;
    letter-spacing: -0.0297rem;
}

.detail-container .detail-table-wrap {
    width: 100%;
}

.detail-table-wrap .table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border-top: 1px solid var(--color-border-neutral-default);
}

.detail-table-wrap .th {
    min-width: 4rem;
    height: 2.125rem;
    font-family: var(--font-family-title);
    font-size: var(--font-size-heading-2xsm);
    color: var(--color-font-neutral-default);
    font-weight: var(--font-weight-bold);
    font-style: normal;
    line-height: 140%;
    letter-spacing: -0.0203rem;
    padding: var(--padding-3) var(--padding-5);
    border-bottom: var(--border-1) solid var(--color-border-neutral-subtler);
    background: var(--color-surface-neutral-gray);
}
.detail-table-wrap .td {
    height: 3.4375rem;
    min-width: 4rem;
    font-family: var(--font-family-body);
    font-size: var(--font-size-body-md);
    color: var(--color-font-neutral-default);
    font-weight: var(--font-weight-regular);
    font-style: normal;
    line-height: 150%;
    letter-spacing: -0.0234rem;
    padding: var(--padding-6) var(--padding-5);
    border-bottom: var(--border-1) solid var(--color-border-neutral-subtler);
    background: var(--color-surface-neutral-default);
}

.detail-container .card-item-wrap {
    display: flex;
    align-items: flex-start;
    align-self: stretch;
    gap: var(--grid-gutter-md);
}

.detail-container .card-item {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    gap: var(--gap-2);
    padding: var(--card-padding-lg) var(--card-padding-xlg);
    border-radius: var(--card-radius-md);
    border: var(--border-1) solid var(--color-border-neutral-subtle);
    background: var(--color-surface-neutral-default);
}

/* 섹션 묶음 (카드 그리드 + 안내 박스 등 세로 배치) */
.detail-container .section-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--grid-gutter-md);
}

/* 카드 그리드 (2열)
 * - .card-item-wrap.card-grid > .card-item (.card-full : 한 줄 전체)
 */
.detail-container .card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}
.detail-container .card-grid .card-full {
    grid-column: 1 / -1;
}

/* 카드 헤더 : .card-head > .card-label + .card-tit */
.detail-container .card-item:has(.card-head) {
    gap: var(--gap-5);
}
.detail-container .card-head {
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
    width: 100%;
}
.detail-container .card-label {
    font-family: var(--font-family-body);
    font-size: var(--font-size-label-xlg);
    color: var(--color-font-theme-primary);
    font-style: normal;
    font-weight: var(--font-weight-medium);
    line-height: 100%;
    letter-spacing: -0.0313rem;
}
.detail-container .card-tit {
    color: var(--color-font-neutral-strong);
    font-family: var(--font-family-title);
    font-size: var(--font-size-heading-md);
    font-style: normal;
    font-weight: var(--font-weight-medium);
    line-height: 140%;
    letter-spacing: -0.0375rem;
}
.detail-container .card-item .description {
    font-family: var(--font-family-body);
    font-size: var(--font-size-body-lg);
    color: var(--color-font-neutral-default);
    font-style: normal;
    font-weight: var(--font-weight-regular);
    line-height: 140%;
    letter-spacing: -0.0297rem;
}

.detail-container .card-item .description,
.detail-container .card-item .bullet-list {
    word-break: keep-all;
}

/* 카드 하단 보조 문구 */
.detail-container .card-note {
    display: flex;
    align-items: flex-start;
    gap: var(--number-3);
    font-family: var(--font-family-body);
    font-size: var(--font-size-label-sm);
    color: var(--color-font-neutral-subtle);
    font-style: normal;
    font-weight: var(--font-weight-regular);
    line-height: 140%;
    letter-spacing: -0.0234rem;
    word-break: keep-all;
}
.detail-container .card-note .ico {
    flex-shrink: 0;
    font-size: var(--icon-3);
}

/* Step Progress (단계 진행)
 * - ol.step-progress > li.step-item(.is-done) > .step-ico + .step-info > .step-num + .step-txt
 */
.step-progress {
    --step-ico-size: var(--number-10);
    display: flex;
    width: 100%;
}
.step-progress .step-item {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: var(--padding-5);
    min-width: 0;
}
/* 연결선 */
.step-progress .step-item::after {
    content: '';
    position: absolute;
    top: calc(var(--step-ico-size) / 2);
    left: var(--step-ico-size);
    right: 0;
    height: var(--border-1);
    background: var(--color-border-neutral-default);
}
.step-progress .step-item:last-child::after {
    display: none;
}
.step-progress .step-ico {
    display: inline-flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: var(--step-ico-size);
    height: var(--step-ico-size);
    font-size: var(--icon-3);
    border-radius: var(--radius-max);
    background: var(--color-surface-neutral-gray-stronger);
    color: var(--color-icon-neutral-static-inverse);
}
.step-progress .step-item.is-done .step-ico {
    background: var(--step-tone, var(--color-icon-neutral-default));
}
/* 완료 단계 그라데이션 : 순서별 톤(--step-tone) → 다음 단계 톤(--step-tone-next) */
.step-progress .step-item:nth-child(1) {
    --step-tone: var(--neutral-20);
    --step-tone-next: var(--neutral-30);
}
.step-progress .step-item:nth-child(2) {
    --step-tone: var(--neutral-30);
    --step-tone-next: var(--neutral-40);
}
.step-progress .step-item:nth-child(3) {
    --step-tone: var(--neutral-40);
    --step-tone-next: var(--neutral-50);
}
.step-progress .step-item:nth-child(4) {
    --step-tone: var(--neutral-50);
    --step-tone-next: var(--neutral-60);
}
.step-progress .step-item:nth-child(5) {
    --step-tone: var(--neutral-60);
}
.step-progress .step-item.is-done::after {
    background: linear-gradient(var(--step-line-dir, 90deg), var(--step-tone), var(--step-tone-next));
}
.step-progress .step-info {
    display: flex;
    flex-direction: column;
    gap: var(--gap-1);
    padding-right: var(--gap-3);
}
.step-progress .step-num {
    font-family: var(--font-family-body);
    font-size: var(--font-size-label-xsm);
    color: var(--color-font-neutral-subtle);
    font-weight: var(--font-weight-regular);
    line-height: 140%;
    letter-spacing: -0.0203rem;
}
.step-progress .step-txt {
    font-family: var(--font-family-body);
    font-size: var(--font-size-body-lg);
    color: var(--color-font-neutral-default);
    font-weight: var(--font-weight-regular);
    line-height: 140%;
    letter-spacing: -0.0297rem;
    word-break: keep-all;
}

/* 태블릿 : 카드 1열 */
@media (max-width: 1023px) {
    .detail-container .card-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 모바일 : 단계 세로 배치 */
@media (max-width: 767px) {
    .step-progress {
        --step-line-dir: 180deg;
        flex-direction: column;
        gap: var(--gap-4);
    }
    .step-progress .step-item {
        flex-direction: row;
        gap: var(--gap-3);
    }
    .step-progress .step-item::after {
        top: var(--step-ico-size);
        left: calc(var(--step-ico-size) / 2);
        right: auto;
        bottom: calc(var(--gap-4) * -1);
        width: var(--border-1);
        height: auto;
    }
}
