/* 계산 기준·자주 묻는 질문 (메인 하단 안내 섹션) */
.guide {
    background-color: var(--bg-medium);
    border: 1px solid var(--bg-light);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.guide__title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--text-light);
}

.guide__title::before {
    content: "";
    flex: 0 0 auto;
    width: 4px;
    height: 1.1em;
    border-radius: 2px;
    background-color: var(--highlight);
}

.guide__lead {
    max-width: 72ch;
    margin-top: 0.75rem;
    color: var(--text-medium);
    line-height: 1.75;
    word-break: keep-all;
}

/* 요율 표 — 전역 table 스타일(우측 정렬·진한 헤더)을 덮는다 */
.guide__table-wrap {
    margin-top: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--bg-light);
    border-radius: 0.5rem;
}

.guide__table {
    font-size: 0.95rem;
}

.guide__table th,
.guide__table td {
    padding: 0.875rem 1.25rem;
    text-align: left;
    vertical-align: top;
}

.guide__table thead th {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-medium);
    font-size: 0.8125rem;
    font-weight: 600;
}

.guide__table tbody th {
    width: 22%;
    background: none;
    color: var(--text-light);
    font-weight: 600;
    white-space: nowrap;
}

.guide__table tbody td {
    color: var(--text-light);
    font-variant-numeric: tabular-nums;
}

.guide__table tbody td:last-child {
    color: var(--text-medium);
}

.guide__table tbody tr:last-child {
    border-bottom: none;
}

.guide__table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* 적용 기준 · 공식 출처 */
.guide__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.guide__panel {
    padding: 1.125rem 1.25rem;
    border: 1px solid var(--bg-light);
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.02);
}

.guide__label {
    margin-bottom: 0.625rem;
    color: var(--text-medium);
    font-size: 0.8125rem;
    font-weight: 600;
}

.guide__facts {
    list-style: none;
    display: grid;
    gap: 0.375rem;
}

.guide__facts li {
    position: relative;
    padding-left: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    word-break: keep-all;
}

.guide__facts li::before {
    content: "";
    position: absolute;
    top: 0.65em;
    left: 0.125rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--highlight);
}

.guide__muted {
    color: var(--text-dark);
}

.guide__sources {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.guide__sources a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--bg-light);
    border-radius: 999px;
    background-color: var(--bg-light);
    color: var(--text-light);
    font-size: 0.85rem;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.guide__sources a:hover {
    border-color: var(--highlight);
    color: var(--highlight);
}

.guide__sources a:focus-visible {
    outline: 2px solid var(--highlight);
    outline-offset: 2px;
}

.guide__sources a span {
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.guide__sources a:hover span {
    color: inherit;
}

/* 유의사항 · 팁 */
.guide__callouts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.guide__callout {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.7;
    word-break: keep-all;
}

.guide__callout::before {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.guide__callout--notice {
    border: 1px solid var(--bg-light);
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-medium);
}

.guide__callout--notice::before {
    content: "참고";
    color: var(--text-light);
}

.guide__callout--tip {
    border: 1px solid rgba(255, 136, 0, 0.25);
    background-color: rgba(255, 136, 0, 0.06);
    color: var(--text-light);
}

.guide__callout--tip::before {
    content: "TIP";
    color: var(--highlight);
}

/* 자주 묻는 질문 */
.faq {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.faq__item {
    padding: 1.25rem;
    border: 1px solid var(--bg-light);
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.02);
}

.faq__q {
    display: flex;
    gap: 0.625rem;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    word-break: keep-all;
}

.faq__q::before {
    content: "Q";
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    background-color: var(--highlight-transparent);
    color: var(--highlight);
    font-size: 0.8rem;
    font-weight: 800;
}

.faq__a {
    margin-top: 0.625rem;
    padding-left: 2.125rem;
    color: var(--text-medium);
    font-size: 0.925rem;
    line-height: 1.7;
    word-break: keep-all;
}

@media (max-width: 1024px) {
    .faq {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .guide {
        padding: 1.25rem;
        border-radius: 0.5rem;
    }

    .guide__title {
        font-size: 1.2rem;
    }

    .guide__lead {
        font-size: 0.95rem;
    }

    .guide__meta,
    .guide__callouts {
        grid-template-columns: 1fr;
    }
}

/* 좁은 화면에서는 표를 항목별 카드로 쌓는다 */
@media (max-width: 640px) {
    .guide__table thead {
        display: none;
    }

    .guide__table,
    .guide__table tbody,
    .guide__table tr,
    .guide__table th,
    .guide__table td {
        display: block;
        width: 100%;
    }

    .guide__table tbody tr {
        padding: 0.875rem 1rem;
    }

    .guide__table tbody th,
    .guide__table tbody td {
        padding: 0;
        white-space: normal;
    }

    .guide__table tbody th {
        width: auto;
        margin-bottom: 0.375rem;
    }

    .guide__table tbody td {
        display: flex;
        gap: 0.75rem;
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .guide__table tbody td + td {
        margin-top: 0.125rem;
    }

    .guide__table tbody td::before {
        content: attr(data-label);
        flex: 0 0 4.5rem;
        color: var(--text-dark);
    }

    .faq__a {
        padding-left: 0;
    }
}
