/* ==========================================================================
   /tax-account/year-end/ — 가이드 섹션 전용 스타일
   히어로·폼·결과는 공통 (limit-title-section, ta-form-group, rec-main 등)
   2026-04-24 작성 · 템플릿 통일 리팩터링
   2026-04-24 업데이트: 결과 박스(rec-refund-box/rec-breakdown) 추가
   ========================================================================== */

/* 핵심 세법 정리 — 6카드 그리드 (섹션 4) */
.tax-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}
.tax-rule-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    transition: all 0.2s ease;
}
.tax-rule-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
    transform: translateY(-1px);
}
.trc-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: #ecfdf5;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.15rem;
}
.trc-label {
    font-size: 0.84rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.trc-value {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.trc-value b {
    color: var(--primary-color);
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.trc-value-split {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 6px;
}
.trc-value-split > div {
    display: flex; justify-content: space-between; align-items: center;
    gap: 8px;
}
.trc-cond {
    color: #64748b;
    font-size: 0.78rem;
    letter-spacing: -0.02em;
}
.trc-value-split b {
    color: var(--primary-color);
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.trc-note {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.5;
    letter-spacing: -0.01em;
}
.trc-note b { color: #64748b; font-weight: 700; }
.tax-rule-card.highlight {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: var(--primary-color);
    grid-column: span 2;
}
.tax-rule-card.highlight .trc-icon {
    background: rgba(255, 255, 255, 0.7);
}
.tax-rule-card.highlight .trc-value b { color: #065f46; font-size: 1.7rem; }
.tax-rule-card.highlight .trc-note { color: #047857; font-size: 0.85rem; }
.tax-rule-card.highlight .trc-note b { color: #065f46; font-size: 0.95rem; }
@media (max-width: 768px) {
    .tax-rules-grid { grid-template-columns: 1fr; gap: 10px; }
    .tax-rule-card.highlight { grid-column: span 1; }
}

/* ==========================================================================
   결과 영역 (계산 후 표시) — limit 패턴과 동기화
   ========================================================================== */

/* 메인 추천 카드 (그라디언트 배경) */
.rec-main {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent, #0891b2) 100%);
    color: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.18);
}
.rec-main .rec-label {
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.9;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rec-main .rec-label i { font-size: 1rem; }
.rec-main .rec-action {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    word-break: keep-all;
}
.rec-main .rec-action b { font-weight: 900; }
/* 2단 폰트 구조: sub (작게, 납입 설명) + main (크게, 환급 금액) */
.rec-main .rec-action .oa-sub {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.92;
    letter-spacing: -0.025em;
    line-height: 1.3;
    margin-bottom: 6px;
    word-break: keep-all;
    white-space: nowrap;
}
.rec-main .rec-action .oa-main {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    word-break: keep-all;
    white-space: nowrap;
}
.rec-main .rec-action .out-action-hint {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0;
    margin-top: 6px;
    line-height: 1.2;
}
.rec-main .rec-sub {
    margin-top: 10px;
    font-size: 0.75rem;
    opacity: 0.85;
    text-align: right;
}

/* 환급 박스 */
.rec-main .rec-refund-box {
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 12px;
}
.rec-main .rec-refund-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.rec-main .rr-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.rec-main .rr-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.rec-main .rec-refund-hint {
    margin-top: 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: -0.01em;
}

/* ISA 보너스 분해 (이전금 있을 때만) */
.rec-main .rec-breakdown {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rec-main .rb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.92);
}
.rec-main .rb-row .rb-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.rec-main .rb-row .rb-label i {
    font-size: 0.95rem;
    color: #fde68a;
}
.rec-main .rb-row .rb-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.rec-main .rb-row.rb-bonus .rb-value { color: #fde68a; }

@media (max-width: 480px) {
    .rec-main .rr-value { font-size: 1.22rem; }
    .rec-main .rec-refund-main { gap: 8px; }
    .rec-main { padding: 16px 18px; }
    .rec-main .rec-action { font-size: 1.05rem; letter-spacing: -0.02em; }
    .rec-main .rec-action .oa-sub { font-size: 0.78rem; letter-spacing: -0.035em; }
    .rec-main .rec-action .oa-main { font-size: 1.2rem; letter-spacing: -0.03em; }
}
@media (max-width: 360px) {
    .rec-main { padding: 14px 14px; }
    .rec-main .rec-action .oa-sub { font-size: 0.72rem; letter-spacing: -0.045em; }
    .rec-main .rec-action .oa-main { font-size: 1.08rem; letter-spacing: -0.04em; }
}

/* 2단: 이유 박스 */
.rec-reason {
    background: #f8fafc;
    border-left: 3px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    word-break: keep-all;
    letter-spacing: -0.01em;
}
.rec-reason strong {
    display: block;
    color: var(--primary-dark);
    font-size: 0.82rem;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.rec-reason ul {
    margin: 0;
    padding-left: 16px;
    color: #334155;
    line-height: 1.7;
}
.rec-reason li { margin-bottom: 2px; }
@media (max-width: 480px) {
    .rec-reason { font-size: 0.85rem; padding: 10px 12px; }
    .rec-reason ul { padding-left: 14px; letter-spacing: -0.025em; }
    .rec-reason li { line-height: 1.6; }
}
@media (max-width: 360px) {
    .rec-reason { font-size: 0.82rem; padding: 9px 10px; }
    .rec-reason ul { padding-left: 12px; letter-spacing: -0.04em; }
    .rec-reason li { line-height: 1.55; }
}

/* 3단: 한도 상태 (미니 요약) */
.limit-status {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
}
.limit-status .ls-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.85rem;
    color: var(--text-sub);
}
.limit-status .ls-row b {
    color: var(--text-main);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* 가이드 섹션 컨테이너 (오른쪽 main) */
.ye-section {
    margin-top: 40px;
    scroll-margin-top: 80px;
}
.ye-section:first-of-type { margin-top: 24px; }
.ye-section h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 10px;
    line-height: 1.35;
    /* 한글 가독성 표준 (사이트 구조.md A-8) */
    word-break: keep-all;
    letter-spacing: -0.02em;
    /* 좌측 primary 바 */
    padding-left: 12px;
    border-left: 4px solid var(--primary-color);
}
.ye-section .section-intro {
    font-size: 0.92rem;
    color: var(--text-sub);
    margin: 0 0 18px;
    line-height: 1.7;
    word-break: keep-all;
    letter-spacing: -0.01em;
}
.ye-section h3,
.ye-timeline-content h3,
.ye-card h3 {
    word-break: keep-all;
    letter-spacing: -0.02em;
    line-height: 1.4;
}
.ye-section p,
.ye-timeline-content p,
.ye-card li,
.ye-check-title,
.ye-check-desc {
    word-break: keep-all;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .ye-section h2 { font-size: 1.55rem; }
}
@media (max-width: 480px) {
    .ye-section h2 {
        font-size: 1.18rem;
        letter-spacing: -0.025em;
        padding-left: 10px;
        border-left-width: 3px;
    }
    .ye-section h3,
    .ye-timeline-content h3,
    .ye-card h3 {
        letter-spacing: -0.025em;
    }
    .ye-section .section-intro,
    .ye-section p,
    .ye-timeline-content p,
    .ye-card li {
        letter-spacing: -0.02em;
        line-height: 1.7;
    }
}
@media (max-width: 350px) {
    .ye-section h2 { letter-spacing: -0.035em; font-size: 1.08rem; padding-left: 8px; }
    .ye-section .section-intro,
    .ye-section p,
    .ye-timeline-content p,
    .ye-card li { letter-spacing: -0.025em; }
}

/* ─── 타임라인 (월별 가이드) ─── */
.ye-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ye-timeline-item {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: var(--transition);
}
.ye-timeline-item.current {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: var(--card-shadow);
}
.ye-timeline-tag {
    flex-shrink: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    height: fit-content;
    white-space: nowrap;
}
.ye-timeline-item.current .ye-timeline-tag {
    background: var(--primary-dark);
}
.ye-timeline-content { flex: 1; min-width: 0; }
.ye-timeline-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text-main);
}
.ye-timeline-content p {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 8px;
}
.ye-inline-link {
    font-size: 0.82rem;
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-border);
}
.ye-inline-link:hover { color: var(--primary-color); border-bottom-style: solid; }

@media (max-width: 520px) {
    .ye-timeline-item { flex-direction: column; gap: 10px; }
}

/* ─── 체크리스트 ─── */
.ye-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ye-check {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}
.ye-check:hover { border-color: var(--primary-border); background: #f8fafc; }
.ye-check input[type="checkbox"] {
    margin: 3px 0 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}
.ye-check input[type="checkbox"]:checked + .ye-check-body .ye-check-title {
    text-decoration: line-through;
    color: var(--text-sub);
}
.ye-check-body { flex: 1; }
.ye-check-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 3px;
}
.ye-check-desc {
    font-size: 0.8rem;
    color: var(--text-sub);
    line-height: 1.45;
}

/* ─── 상황별 가이드 카드 ─── */
.ye-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 640px) {
    .ye-cards { grid-template-columns: repeat(3, 1fr); }
}
.ye-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 16px;
    transition: var(--transition);
}
.ye-card:hover {
    border-color: var(--primary-border);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
}
.ye-card-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1;
    display: inline-flex;
}
.ye-card-icon i { display: inline-block; }
.ye-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 10px;
}
.ye-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
}
.ye-card li {
    padding: 4px 0 4px 14px;
    position: relative;
    line-height: 1.5;
}
.ye-card li::before {
    content: "·";
    position: absolute;
    left: 2px;
    color: var(--primary-color);
    font-weight: 700;
}
.ye-card li b { color: var(--primary-dark); }

/* ─────────────────────────────────────────
   상태 프리셋 4버튼 (지금 내 상태)
   ───────────────────────────────────────── */
/* 5 구간 연봉 라디오 — 360px 에서도 단일 라인 유지 */
.ta-radio-5col {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px !important;
}
.ta-radio-5col label {
    padding: 9px 2px !important;
    min-width: 0 !important;
    font-size: 0.82rem !important;
    line-height: 1.2;
    letter-spacing: -0.04em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 420px) {
    .ta-radio-5col label {
        font-size: 0.74rem !important;
        padding: 8px 1px !important;
        letter-spacing: -0.06em;
    }
}
@media (max-width: 360px) {
    .ta-radio-5col label {
        font-size: 0.7rem !important;
        letter-spacing: -0.07em;
    }
}

.ye-presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 6px;
}
/* 2 프리셋 반반 + 직접입력 full-width 아래 */
.ye-presets.ye-presets-stack {
    grid-template-columns: 1fr 1fr;
}
.ye-presets.ye-presets-stack .ye-preset-middle {
    grid-column: span 2;
}

/* 프리셋 버튼 — 미가입자 / 한도 최대 */
.ye-preset {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ye-preset:hover {
    border-color: var(--primary-color);
    background: #f0fdf4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}
.ye-preset.active {
    border-color: var(--primary-color);
    background: #ecfdf5;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}
.yp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.yp-emoji {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    flex-shrink: 0;
}
.yp-emoji i { font-size: 1.15rem; }
.yp-main {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.015em;
}
.yp-caption {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-top: -2px;
    /* yp-main 텍스트 시작 위치와 정렬 (emoji 1.15rem + gap 8px) */
    padding-left: calc(1.15rem + 8px);
}
.yp-detail {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.55;
}
.yp-detail b {
    color: #0f172a;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* 직접 입력 버튼 — full-width 아래 길게 */
.ye-preset-middle {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: #fff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    color: #475569;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.ye-preset-middle:hover {
    border-style: solid;
    border-color: var(--primary-color);
    background: #f0fdf4;
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}
.ye-preset-middle.active {
    border-style: solid;
    border-color: var(--primary-color);
    background: #ecfdf5;
    color: var(--primary-dark);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}
.ye-preset-middle.active .yp-mid-arrow { color: var(--primary-color); }
.ye-preset-middle.active .yp-mid-sub { color: var(--primary-color); }
.yp-mid-icon {
    font-size: 1.05rem;
    color: var(--primary-color);
}
.yp-mid-main {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.yp-mid-arrow {
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 700;
    transition: transform 0.2s;
}
.ye-preset-middle:hover .yp-mid-arrow {
    color: var(--primary-color);
    transform: translateY(2px);
}
.ye-preset {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 12px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    font-family: inherit;
}
.ye-preset:hover {
    border-color: var(--primary-color);
    background: #f0fdf4;
    transform: translateY(-1px);
}
.ye-preset.active {
    border-color: var(--primary-color);
    background: #ecfdf5;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}
.yp-emoji {
    font-size: 1.1rem;
    color: var(--primary-color);
    line-height: 1;
}
.yp-emoji i { font-size: 1.15rem; }
.yp-main {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.yp-sub {
    font-size: 0.75rem;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* ─────────────────────────────────────────
   상태별 다음 행동 CTA (결과 영역 최상단)
   ───────────────────────────────────────── */
.ye-next-cta {
    margin: 14px 0 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1.5px solid var(--primary-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}
.ye-next-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.2);
    border-color: var(--primary-dark);
}
.ye-cta-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ye-cta-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #065f46;
    letter-spacing: -0.01em;
    line-height: 1.35;
}
.ye-cta-title b { color: var(--primary-dark); }
.ye-cta-sub {
    font-size: 0.83rem;
    color: #047857;
    line-height: 1.4;
}
.ye-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-dark);
}
.ye-cta-link::after { content: "→"; transition: transform 0.2s; }
.ye-next-cta:hover .ye-cta-link::after { transform: translateX(3px); }

/* ─────────────────────────────────────────
   환급액 카드 그리드 (섹션 1)
   ───────────────────────────────────────── */
.refund-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}
.refund-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    transition: all 0.2s ease;
}
.refund-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
    transform: translateY(-1px);
}
.rc-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: #ecfdf5;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.15rem;
}
.rc-label {
    font-size: 0.84rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.rc-formula {
    font-size: 1.05rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    line-height: 1.35;
}
.rc-formula b {
    color: var(--primary-color);
    font-weight: 800;
}
.rc-split {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 6px;
}
.rc-split > div {
    display: flex; justify-content: space-between; align-items: center;
}
.rc-split span { color: #64748b; font-size: 0.82rem; letter-spacing: -0.02em; }
.rc-split b {
    color: var(--primary-color);
    font-size: 1.02rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.rc-note {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
    letter-spacing: -0.01em;
}
.rc-note b { color: #64748b; font-weight: 700; }

/* 경고 카드 (결정세액 한도) */
.refund-card.rc-warn {
    background: #fffbeb;
    border-color: #fcd34d;
}
.rc-icon-warn {
    background: #fef3c7 !important;
    color: #d97706 !important;
}
.rc-warn-text {
    color: #92400e !important;
}
.rc-warn-text b {
    color: #b45309 !important;
}
.rc-warn .rc-note b { color: #92400e; }

/* 팁 카드 (저소득자) */
.refund-card.rc-tip {
    background: #eff6ff;
    border-color: #93c5fd;
}
.rc-icon-tip {
    background: #dbeafe !important;
    color: #2563eb !important;
}
.rc-tip-text {
    color: #1e3a8a !important;
}
.rc-tip-text b {
    color: #1d4ed8 !important;
}

/* 사례 카드 (span 2) */
.refund-card.rc-example {
    grid-column: span 2;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: #6ee7b7;
}
.rc-label-top {
    font-size: 0.9rem;
    font-weight: 700;
    color: #065f46;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rc-label-top i { font-size: 1rem; color: var(--primary-color); }
.rc-example-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rc-example-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #d1fae5;
    font-size: 0.85rem;
    line-height: 1.4;
}
.rc-ex-case { color: #0f172a; font-weight: 600; letter-spacing: -0.015em; }
.rc-ex-case span { color: #64748b; font-size: 0.76rem; font-weight: 500; }
.rc-ex-theory {
    color: #64748b;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.rc-ex-real {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
}
.rc-ex-real b { font-size: 0.95rem; font-weight: 800; }
.rc-ex-real small { font-size: 0.7rem; font-weight: 500; }
.rc-real-cap { color: #dc2626; }
.rc-real-cap b { color: #dc2626; }
.rc-real-ok { color: #059669; }
.rc-real-ok b { color: #059669; }

@media (max-width: 480px) {
    .refund-cards-grid { grid-template-columns: 1fr; gap: 10px; }
    .refund-card.rc-example { grid-column: auto; }
    .rc-example-row {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .rc-ex-theory {
        grid-column: span 2;
        font-size: 0.75rem;
        padding-top: 2px;
        border-top: 1px dashed #d1fae5;
    }
}

/* ─────────────────────────────────────────
   환급 공식 섹션 — 3단계 가이드 + 예시 테이블 (legacy — used elsewhere)
   ───────────────────────────────────────── */
.ye-steps {
    counter-reset: ye-step;
    list-style: none;
    padding: 0;
    margin: 10px 0 16px;
}
.ye-steps li {
    counter-increment: ye-step;
    position: relative;
    padding: 10px 12px 10px 42px;
    background: #f8fafc;
    border-left: 3px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    margin-bottom: 8px;
    line-height: 1.55;
    font-size: 0.94rem;
}
.ye-steps li::before {
    content: counter(ye-step);
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}
.ye-example-table {
    font-variant-numeric: tabular-nums;
}
.ye-example-table td, .ye-example-table th {
    font-size: 0.9rem;
}
