/* SPC Official Site card + money chips
 * 법령허브 / 머니 매거진 공통 컴포넌트
 */

/* ── 공식 사이트 카드 ─────────────────────────────────────────── */
.official-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    margin: 14px 0 22px;
}

.official-site {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.official-site:hover,
.official-site:focus-visible {
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px -8px rgba(37, 99, 235, .35);
    text-decoration: none;
}

.official-site__icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    background: #f1f5f9;
    border-radius: 50%;
}

.official-site__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.official-site__name {
    font-weight: 700;
    font-size: 14.5px;
    color: #1e293b;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
}

.official-site__tag {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 4px;
    vertical-align: 1px;
}

.official-site__org {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.official-site__cta {
    flex: 0 0 auto;
    font-size: 12.5px;
    color: #2563eb;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .official-site { gap: 10px; padding: 10px 12px; }
    .official-site__icon { flex-basis: 34px; width: 34px; height: 34px; font-size: 20px; }
    .official-site__name { font-size: 14px; }
    .official-site__cta { display: none; }
    .official-site::after {
        content: "→";
        color: #2563eb;
        font-weight: 700;
    }
}

/* ── 머니 chip 스트립 ─────────────────────────────────────────── */
.law-money-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 18px;
}

.law-money-chips__label {
    align-self: center;
    font-size: 12.5px;
    color: #92400e;
    font-weight: 700;
    margin-right: 4px;
}

.chip.chip--money {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 3px solid #ca8a04;
    border-radius: 14px;
    color: #92400e;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease;
}

.chip.chip--money:hover,
.chip.chip--money:focus-visible {
    background: #fef3c7;
    text-decoration: none;
}

/* ── 사례 카드 머니 outcome pill ──────────────────────────────── */
.law-case-outcome {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: 1px;
    white-space: nowrap;
}
.law-case-outcome--refund { background: #dcfce7; color: #166534; }
.law-case-outcome--fine   { background: #fee2e2; color: #991b1b; }
.law-case-outcome--reject { background: #f1f5f9; color: #475569; }

/* ── 사례 → 관련 섹션 CTA 카드 (법령 사례 페이지 하단) ──────── */
.law-related-cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 14px 0 18px;
}
.law-related-cta__card {
    display: block;
    padding: 12px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 3px solid #16a34a;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, transform .15s ease;
}
.law-related-cta__card:hover {
    border-color: #16a34a;
    transform: translateY(-1px);
    text-decoration: none;
}
.law-related-cta__icon { font-size: 18px; margin-right: 4px; }
.law-related-cta__title { font-weight: 700; color: #1e293b; font-size: 14px; }
.law-related-cta__desc { font-size: 12.5px; color: #475569; margin-top: 4px; line-height: 1.45; }
