/* ===== Pretendard 웹폰트 (서버 직접 호스팅, 외부 CDN 의존 X) ===== */
@font-face {
    font-family: 'Pretendard';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('/resources/fonts/pretendard/Pretendard-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Pretendard';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('/resources/fonts/pretendard/Pretendard-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Pretendard';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('/resources/fonts/pretendard/Pretendard-SemiBold.woff2') format('woff2');
}
@font-face {
    font-family: 'Pretendard';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('/resources/fonts/pretendard/Pretendard-Bold.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', sans-serif;
    background: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== 메인 페이지 헤더 ===== */
.home-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 2rem;
}

.home-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-logo {
    height: 32px;
    width: auto;
}

.home-tagline {
    font-size: 0.8rem;
    color: #9ca3af;
    padding-left: 1rem;
    border-left: 1px solid #e5e7eb;
}

/* ===== 서브 페이지 헤더 ===== */
.sub-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sub-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sub-logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.sub-logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.sub-logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.sub-header-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-left: 1rem;
    border-left: 1px solid #e5e7eb;
    min-width: 0;
}

.sub-title-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sub-title-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #374151;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-header-nav {
    display: flex;
    gap: 0.4rem;
    margin-left: auto;
    flex-shrink: 0;
}

.sub-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s;
}

.sub-nav-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.sub-nav-btn.bookmark {
    background: #fffbeb;
    border-color: #fde68a;
}

.sub-nav-btn.bookmark:hover {
    background: #fef3c7;
}

main {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 2rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.calc-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}

.calc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.calc-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2563eb;
}

.calc-card p {
    color: #6b7280;
    margin-bottom: 0;
}

.btn {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #1d4ed8;
}

.btn-primary {
    width: 100%;
}

.btn-back {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.calculator-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

/* 면책·유의사항 박스 (세금·법·의료·대출 등 민감 계산기용) */
.calc-disclaimer {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1.5rem 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #78350f;
}

.calc-disclaimer strong {
    color: #92400e;
    display: block;
    margin-bottom: 0.35rem;
}

.calc-disclaimer p {
    margin: 0;
    color: #78350f;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: #fff;
    color: #1f2937;
    font-family: inherit;
    box-sizing: border-box;
}

.input-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    cursor: pointer;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #2563eb;
}

/* 시·분·초 등 인라인 타임 입력 행 */
.time-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.time-row input {
    flex: 1;
    min-width: 0;
    max-width: 90px;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: #fff;
    color: #1f2937;
    box-sizing: border-box;
}

.time-row input:focus {
    outline: none;
    border-color: #2563eb;
}

.time-row span {
    color: #6b7280;
    font-weight: 500;
    padding: 0 0.25rem;
}

.result-box {
    margin-top: 2rem;
    padding: 2rem;
    background: #f0f9ff;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
}

.result-box h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item strong {
    color: #2563eb;
    font-size: 1.2rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 검색창 ===== */
.search-container {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.search-box:focus-within {
    box-shadow: 0 6px 30px rgba(37, 99, 235, 0.2);
}

.search-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

#searchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    background: transparent;
}

#searchInput::placeholder {
    color: #9ca3af;
}

/* ===== 자동완성 드롭다운 ===== */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #f9fafb;
}

.autocomplete-item .calc-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.autocomplete-item .calc-info {
    flex: 1;
}

.autocomplete-item .calc-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.autocomplete-item .calc-name strong {
    color: #2563eb;
    background: #eff6ff;
    padding: 0 0.25rem;
    border-radius: 4px;
}

.autocomplete-item .calc-category {
    font-size: 0.875rem;
    color: #6b7280;
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

/* ===== 카테고리 탭 ===== */
.category-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.category-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* ===== 카테고리 섹션 ===== */
.category-section {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.15rem;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.category-title-icon {
    font-size: 1.1rem;
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-left: 0.25rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    align-items: stretch;
}

.calc-card {
    --card-color: #2563eb;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
}

.calc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: var(--card-color);
}

.calc-card:hover h3 {
    color: var(--card-color);
}

.calc-card:hover .calc-card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--card-color);
}

.calc-card-accent {
    display: none;
}

.calc-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calc-icon-large {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
    line-height: 1;
}

.calc-card h3 {
    font-size: 0.9rem;
    color: #1f2937;
    margin: 0 0 0.15rem;
    transition: color 0.25s;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calc-desc {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calc-card-footer {
    flex-shrink: 0;
    padding: 0;
}

.calc-card-arrow {
    font-size: 1rem;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.25s;
    color: #9ca3af;
}

/* 더보기 버튼 */
.show-more-btn {
    display: block;
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.5rem;
    background: none;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.show-more-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.no-results-large {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
    font-size: 1.25rem;
}

/* ===== 상단 소개 텍스트 ===== */
.main-intro {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.main-intro strong {
    color: #2563eb;
}

/* ===== 인기 계산기 섹션 ===== */
.popular-section {
    margin-bottom: 2rem;
}

.popular-title {
    font-size: 1.15rem;
    color: #1f2937;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ef4444;
    display: inline-block;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.6rem;
}

.popular-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    border: 1px solid #fed7aa;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    cursor: pointer;
}

.popular-card:hover {
    border-color: #f97316;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
    transform: translateY(-2px);
}

.popular-card .pop-rank {
    font-size: 0.7rem;
    font-weight: 800;
    color: #f97316;
    min-width: 18px;
}

.popular-card .pop-icon {
    font-size: 1.2rem;
}

.popular-card .pop-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 하단 SEO 콘텐츠 ===== */
.seo-bottom {
    margin-top: 3rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.seo-bottom-title {
    font-size: 1rem;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.seo-bottom-title:hover {
    color: #374151;
}

.seo-toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.seo-toggle-icon.open {
    transform: rotate(180deg);
}

.seo-bottom-content {
    display: none;
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.7;
}

.seo-bottom-content.show {
    display: block;
}

.seo-bottom-content p {
    margin-bottom: 0.75rem;
}

.seo-bottom-content h3 {
    font-size: 0.9rem;
    color: #374151;
    margin: 1.25rem 0 0.5rem;
}

.seo-faq details {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.seo-faq summary {
    padding: 0.6rem 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
    list-style: none;
}

.seo-faq summary::-webkit-details-marker {
    display: none;
}

.seo-faq summary::before {
    content: 'Q. ';
    color: #2563eb;
    font-weight: 700;
}

.seo-faq details p {
    padding: 0 0.75rem 0.6rem;
    margin: 0;
    color: #6b7280;
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .home-header {
        padding: 0.6rem 1rem;
    }

    .home-logo {
        height: 26px;
    }

    .home-tagline {
        display: none;
    }

    main {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .search-container {
        margin-bottom: 1rem;
    }

    .search-box {
        padding: 0.6rem 1rem;
    }

    #searchInput {
        font-size: 0.95rem;
    }

    .category-tabs {
        gap: 0.4rem;
        margin-bottom: 1rem;
    }

    .category-tab {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .calc-card {
        padding: 0.6rem 0.75rem;
        gap: 0.6rem;
    }

    .calc-icon-large {
        font-size: 1.5rem;
        width: 34px;
    }

    .calc-card h3 {
        font-size: 0.85rem;
    }

    .calc-desc {
        font-size: 0.7rem;
    }

    .category-title {
        font-size: 1rem;
    }

    .category-section {
        margin-bottom: 1.5rem;
    }

    .main-intro {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .popular-card {
        padding: 0.5rem 0.6rem;
    }

    .popular-card .pop-name {
        font-size: 0.75rem;
    }

    .seo-bottom {
        margin-top: 2rem;
        padding: 1rem;
    }
}

/* (구 헤더 스타일 제거됨 - sub-header로 통합) */

/* ===== 반응형 (모바일) ===== */
@media (max-width: 768px) {
    /* 모바일 서브 헤더 */
    .sub-header {
        position: relative;
    }

    .sub-header-inner {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .sub-logo-text {
        display: none;
    }

    .sub-header-title {
        padding-left: 0.5rem;
    }

    .sub-title-text {
        font-size: 0.85rem;
    }

    .sub-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .calculator-title {
        font-size: 1.25rem;
    }

    .calculator-desc {
        font-size: 0.8rem;
    }
}



/* ===== 즐겨찾기 알림창 ===== */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s;
}

.custom-alert.fade-out {
    animation: fadeOut 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.custom-alert-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.custom-alert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.custom-alert-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.5rem;
    white-space: pre-line;
}

.custom-alert-close {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.custom-alert-close:hover {
    background: #1d4ed8;
}

/* ===== select 입력 ===== */
.select-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.select-input:focus {
    outline: none;
    border-color: #2563eb;
}

/* ===== 결과 섹션 ===== */
.result-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.result-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-section h4 {
    color: #2563eb;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.result-section.highlight {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #2563eb;
}

.result-item.total {
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 2px solid #2563eb;
    font-weight: 700;
}

.result-item.large strong {
    font-size: 1.75rem;
    color: #2563eb;
}

/* ===== D-Day 디스플레이 ===== */
.dday-display {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.dday-number {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
}

.dday-text {
    font-size: 1.25rem;
    color: white;
    opacity: 0.9;
}

/* ===== BMI 디스플레이 ===== */
.bmi-display {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.bmi-number {
    font-size: 3rem;
    font-weight: 900;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.bmi-status {
    font-size: 1.5rem;
    font-weight: 700;
}

.bmi-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.bmi-info h4 {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.bmi-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bmi-info li {
    padding: 0.5rem 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.result-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.result-info p {
    margin: 0;
    color: #1e40af;
    font-weight: 600;
}

/* ==========================================
   면책 문구 (Disclaimer) 섹션
========================================== */
.disclaimer {
    margin-top: 2.5rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
    border: 2px solid #ffd54f;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}

.disclaimer h4 {
    color: #f57c00;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.disclaimer ul li {
    padding: 0.6rem 0;
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.7;
    color: #424242;
    font-size: 0.95rem;
}

.disclaimer ul li:before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: #f57c00;
    font-weight: bold;
    font-size: 1.2rem;
}

.disclaimer strong {
    color: #d84315;
    font-weight: 600;
}

/* 참고자료 링크 */
.reference-links {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ffe082;
}

.reference-links h5 {
    color: #e65100;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.reference-links ul {
    margin: 0;
}

.reference-links ul li {
    padding: 0.5rem 0;
    padding-left: 0;
}

.reference-links ul li:before {
    content: "→";
    left: 0;
    color: #1976d2;
}

.reference-links li a {
    color: #1565c0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding-left: 1.5rem;
}

.reference-links li a:hover {
    color: #0d47a1;
    text-decoration: underline;
    padding-left: 2rem;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .disclaimer {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .disclaimer h4 {
        font-size: 1.05rem;
    }
    
    .disclaimer ul li {
        font-size: 0.9rem;
        padding-left: 1.5rem;
    }
    
    .reference-links h5 {
        font-size: 1rem;
    }
    
    .reference-links li a {
        font-size: 0.9rem;
    }
}

/* 다크모드 대응 (선택사항) */
@media (prefers-color-scheme: dark) {
    .disclaimer {
        background: linear-gradient(135deg, #332800 0%, #3d2f00 100%);
        border-color: #8d6e00;
    }
    
    .disclaimer h4 {
        color: #ffb74d;
    }
    
    .disclaimer ul li {
        color: #e0e0e0;
    }
    
    .disclaimer strong {
        color: #ff8a65;
    }
    
    .reference-links {
        border-top-color: #5d4a00;
    }
    
    .reference-links h5 {
        color: #ffa726;
    }
    
    .reference-links li a {
        color: #64b5f6;
    }
    
    .reference-links li a:hover {
        color: #90caf9;
    }
}

/* ==========================================
   상환 스케줄 테이블
========================================== */
.schedule-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.schedule-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #1e293b;
}

.btn-toggle {
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #475569;
    transition: all 0.2s;
}

.btn-toggle:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.btn-toggle #toggleIcon {
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

.table-scroll {
    overflow-x: auto;
    margin: 1rem 0;
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.schedule-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.schedule-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.schedule-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #475569;
}

.schedule-table td.amount {
    text-align: right;
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 500;
}

.schedule-table tbody tr:hover {
    background: #f8fafc;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-secondary {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .schedule-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.5rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .schedule-table th:nth-child(2),
    .schedule-table td:nth-child(2) {
        display: none; /* 모바일에서 날짜 숨김 */
    }
    
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   빠른 계산 버튼
========================================== */
.quick-calc-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.quick-calc-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #1e293b;
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-quick {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.btn-quick:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-quick:active {
    transform: translateY(0);
}

/* D-Day 결과 강조 */
.result-section.highlight #ddayValue {
    font-size: 2.5rem;
    color: #667eea;
    font-weight: 700;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .quick-buttons {
        flex-direction: column;
    }
    
    .btn-quick {
        width: 100%;
        min-width: auto;
    }
    
    .result-section.highlight #ddayValue {
        font-size: 2rem;
    }
}

/* ==========================================
   BMI 게이지
========================================== */
.bmi-gauge {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
}

.gauge-bar {
    position: relative;
    height: 40px;
    margin-bottom: 0.5rem;
}

.gauge-sections {
    display: flex;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gauge-section {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.gauge-section.underweight {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.gauge-section.normal {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.gauge-section.overweight {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.gauge-section.obese {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.gauge-section::after {
    content: attr(data-label);
}

.gauge-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #1e293b;
    transition: left 0.5s ease;
}

.gauge-pointer::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 35px;
    background: #1e293b;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* BMI 정보 박스 */
.bmi-info {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
}

.bmi-info h4 {
    margin: 0 0 0.75rem 0;
    color: #1e40af;
    font-size: 1.1rem;
}

.bmi-info p {
    margin: 0;
    line-height: 1.7;
    color: #1e293b;
}

/* BMI 기준표 */
.bmi-table-section {
    margin-top: 2rem;
}

.bmi-table-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #1e293b;
}

.bmi-reference-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bmi-reference-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bmi-reference-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.bmi-reference-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #475569;
}

.bmi-reference-table tbody tr:last-child td {
    border-bottom: none;
}

.bmi-reference-table tbody tr:hover {
    background: #f8fafc;
}

/* 행 색상 구분 */
.underweight-row td:first-child {
    border-left: 4px solid #3b82f6;
    font-weight: 600;
}

.normal-row td:first-child {
    border-left: 4px solid #10b981;
    font-weight: 600;
}

.overweight-row td:first-child {
    border-left: 4px solid #f59e0b;
    font-weight: 600;
}

.obese1-row td:first-child,
.obese2-row td:first-child {
    border-left: 4px solid #ef4444;
    font-weight: 600;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .gauge-section::after {
        font-size: 0.65rem;
    }
    
    .gauge-labels {
        font-size: 0.75rem;
    }
    
    .bmi-reference-table th,
    .bmi-reference-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .bmi-info {
        padding: 1.25rem;
    }
}

/* ==========================================
   월세 비교 섹션
========================================== */
.comparison-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 2px solid #0ea5e9;
}

.comparison-section h4 {
    margin: 0 0 0.5rem 0;
    color: #0c4a6e;
    font-size: 1.1rem;
}

.comparison-desc {
    margin: 0 0 1rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.comparison-item {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comparison-item span {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.comparison-item strong {
    display: block;
    font-size: 1.1rem;
    color: #0f172a;
}

.comparison-item.highlight-compare {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
}

.comparison-item.highlight-compare span,
.comparison-item.highlight-compare strong {
    color: white;
}

.comparison-note {
    margin: 1rem 0 0 0;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
}

/* 추천 박스 */
.recommendation-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
}

.recommendation-box h4 {
    margin: 0 0 0.75rem 0;
    color: #92400e;
    font-size: 1.1rem;
}

.recommendation-box p {
    margin: 0;
    line-height: 1.7;
    color: #1e293b;
    font-weight: 500;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-section {
        padding: 1.25rem;
    }
    
    .recommendation-box {
        padding: 1.25rem;
    }
}



/* ==========================================
   관련 계산기 추천
========================================== */
.related-calcs {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 0 1rem;
}

.related-calcs h3 {
    font-size: 1rem;
    color: #1f2937;
    margin: 0 0 1rem;
    font-weight: 700;
}

.related-calcs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.related-calc-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.related-calc-card:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.related-calc-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
}

.related-calc-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-calc-card:hover .related-calc-name {
    color: #2563eb;
}

@media (max-width: 768px) {
    .related-calcs {
        padding: 0 1rem;
    }

    .related-calcs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .related-calc-card {
        padding: 0.65rem 0.75rem;
    }

    .related-calc-name {
        font-size: 0.8rem;
    }
}

/* ==========================================
   계산기 상단 설명 박스
========================================== */
.calc-intro {
    max-width: 100%;
    margin: 2rem auto 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border-left: 4px solid #2563eb;
    border-radius: 12px;
}

.calc-intro h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: #1e40af;
}

.calc-intro p {
    margin: 0;
    line-height: 1.8;
    color: #1e293b;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .calc-intro {
        margin: 1.5rem 1rem 1.25rem;
        padding: 1.25rem 1.5rem;
    }

    .calc-intro h3 {
        font-size: 1rem;
    }

    .calc-intro p {
        font-size: 0.9rem;
    }
}


/* ==========================================
   모바일 결과 영역 개선
========================================== */
@media (max-width: 768px) {
    /* 계산기 컨테이너 패딩 축소 */
    .calculator-container {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }

    /* 결과 박스 패딩 축소 */
    .result-box {
        padding: 1.25rem;
    }

    /* 메인 결과 - 세로 배치 */
    .result-section.highlight {
        padding: 1.25rem;
    }

    .result-item.large {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.25rem;
    }

    .result-item.large span {
        font-size: 0.9rem;
        color: #6b7280;
    }

    .result-item.large strong {
        font-size: 1.5rem;
    }

    /* 일반 결과 항목 - 세로 배치 */
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .result-item span {
        font-size: 0.85rem;
        color: #6b7280;
    }

    .result-item strong {
        font-size: 1.05rem;
    }

    /* 비교 섹션 */
    .comparison-section {
        padding: 1rem;
    }

    .comparison-section h4 {
        font-size: 1rem;
    }

    .comparison-desc {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* 추천 박스 */
    .recommendation-box {
        padding: 1.25rem;
    }

    .recommendation-box h4 {
        font-size: 1rem;
    }

    .recommendation-box p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    /* 면책 문구 텍스트 간격 */
    .disclaimer ul li {
        line-height: 1.8;
        padding-left: 1.25rem;
    }

    /* 설명 박스 */
    .calc-intro {
        margin: 1rem 0.5rem 1rem;
        padding: 1.25rem;
    }

    .calc-intro p {
        font-size: 0.88rem;
        line-height: 1.8;
    }
}

/* ==========================================
   참고자료 링크 모바일 개선
========================================== */
@media (max-width: 768px) {
    .reference-links ul li {
        display: flex;
        align-items: flex-start;
        padding-left: 0;
    }

    .reference-links ul li:before {
        content: "→";
        position: relative;
        left: 0;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }

    .reference-links li a {
        padding-left: 0;
        font-size: 0.88rem;
        word-break: keep-all;
    }

    .reference-links li a:hover {
        padding-left: 0;
    }
}

/* ==========================================
   메인 헤더 즐겨찾기 버튼
========================================== */
.btn-bookmark-main {
    padding: 0.4rem 1rem;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-bookmark-main:hover {
    background: #fef3c7;
    border-color: #fbbf24;
}

/* ==========================================
   퇴직금 계산기 추가 스타일
========================================== */
.salary-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toggle-section {
    margin: 1.25rem 0;
    text-align: center;
}

.btn-toggle {
    background: none;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: #6b7280;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-toggle:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.extra-inputs {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.input-help {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.info-box {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.info-box.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.info-box.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.highlight-row {
    background: #eff6ff !important;
    font-weight: 600;
}

.highlight-row td {
    color: #2563eb;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.rate-table th, .rate-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.rate-table th {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

.rate-table tbody tr:hover {
    background: #f9fafb;
}

@media (max-width: 768px) {
    .salary-inputs {
        gap: 0.5rem;
    }
    .extra-inputs {
        padding: 1rem;
    }
    .btn-toggle {
        font-size: 0.88rem;
        padding: 0.6rem 1rem;
    }
    .rate-table th, .rate-table td {
        padding: 0.5rem 0.5rem;
        font-size: 0.82rem;
    }
}

/* ==========================================
   섹션 타이틀 아래 간격 보강
========================================== */
.section-title {
    margin-bottom: 1rem;
}

.section-title + .input-group {
    margin-top: 0.5rem;
}


/* ==========================================
   SEO 설명 텍스트 영역
========================================== */
.seo-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    line-height: 1.8;
}

.seo-content h3 {
    font-size: 1.2rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.seo-content h4 {
    font-size: 1.05rem;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.seo-content p {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
}

.faq-item h4 {
    color: #4f46e5;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.faq-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

/* 일반 리스트 (텍스트 항목) 기본 스타일 */
.seo-content ul,
.seo-content ol {
    padding-left: 1.25rem;
    margin: 0.5rem 0 1rem;
}
.seo-content ul li,
.seo-content ol li {
    font-size: 0.92rem;
    color: #4b5563;
    margin-bottom: 0.35rem;
    line-height: 1.7;
}

/* "함께 보면 좋은 계산기" / "참고 자료" 처럼 항목이 전부 링크인 ul은 칩 스타일로 */
.seo-content ul:has(> li > a:only-child) {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.seo-content ul:has(> li > a:only-child) > li {
    margin: 0;
}
.seo-content ul:has(> li > a:only-child) > li > a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    background: #fff;
    border: 1px solid #e0e7ff;
    border-radius: 999px;
    color: #4f46e5;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
}
.seo-content ul:has(> li > a:only-child) > li > a:hover {
    background: #eef2ff;
    border-color: #4f46e5;
    color: #4338ca;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .seo-content {
        margin: 1rem 0.5rem;
        padding: 1.25rem;
    }
    .seo-content h3 { font-size: 1.1rem; }
    .seo-content h4 { font-size: 1rem; }
    .seo-content p { font-size: 0.9rem; }
    .seo-content ul:has(> li > a:only-child) > li > a {
        font-size: 0.85rem;
        padding: 0.45rem 0.8rem;
    }
}


/* ============================================
   가이드(/guide) 기사 공통 스타일
   ============================================ */
.guide-article { max-width:800px; margin:0 auto; line-height:1.85; color:#374151; font-size:1rem; }
.guide-meta { color:#6b7280; font-size:0.88rem; margin-bottom:1rem; }
.guide-intro { background:#f0f4ff; border-left:4px solid #4f46e5; padding:1.25rem 1.5rem; border-radius:8px; margin-bottom:2rem; line-height:1.7; }
.guide-intro p { margin:0; color:#1e293b; }
.guide-article h2 { font-size:1.35rem; color:#1f2937; margin:2.5rem 0 1rem; padding-bottom:0.5rem; border-bottom:2px solid #e5e7eb; }
.guide-article p { margin:0 0 1rem; font-size:0.98rem; }
.guide-article ul, .guide-article ol { padding-left:1.5rem; margin:0.5rem 0 1.25rem; }
.guide-article li { margin-bottom:0.5rem; line-height:1.75; }
.guide-article a { color:#4f46e5; }
.guide-disclaimer { background:#fffbeb; border:1px solid #fde68a; border-radius:8px; padding:1rem 1.25rem; margin-top:2.5rem; font-size:0.88rem; color:#78350f; }
.guide-disclaimer p { margin:0; }

/* 가이드 인덱스 */
.guide-index { max-width:900px; margin:0 auto; line-height:1.7; color:#374151; }
.guide-index .guide-intro { background:#f0f4ff; border-left:4px solid #4f46e5; padding:1.25rem 1.5rem; border-radius:8px; margin-bottom:2rem; line-height:1.7; }
.guide-index h2 { font-size:1.35rem; color:#1f2937; margin:2.5rem 0 1rem; padding-bottom:0.5rem; border-bottom:2px solid #e5e7eb; }
.guide-list { list-style:none; padding:0; margin:0; }
.guide-card { background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:1.5rem 1.75rem; margin-bottom:1rem; transition:all 0.2s; }
.guide-card:hover { border-color:#c7d2fe; box-shadow:0 4px 14px rgba(79,70,229,0.08); transform:translateY(-2px); }
.guide-cat { display:inline-block; background:#eef2ff; color:#4338ca; font-size:0.8rem; font-weight:600; padding:0.25rem 0.7rem; border-radius:999px; margin-bottom:0.65rem; }
.guide-card h3 { font-size:1.1rem; margin:0 0 0.5rem; line-height:1.45; }
.guide-card h3 a { color:#1f2937; text-decoration:none; }
.guide-card h3 a:hover { color:#4f46e5; }
.guide-card p { margin:0 0 0.5rem; font-size:0.93rem; color:#4b5563; line-height:1.65; }
.guide-tags { font-size:0.82rem; color:#6b7280; }
.guide-upcoming { background:#f9fafb; padding:1rem 1.25rem; border-radius:8px; color:#4b5563; font-size:0.93rem; }
.guide-index ul:not(.guide-list) { padding-left:1.5rem; }
.guide-index ul:not(.guide-list) li { margin-bottom:0.4rem; }
@media (max-width:768px) {
    .guide-article { font-size:0.95rem; }
    .guide-article h2 { font-size:1.2rem; }
    .guide-card { padding:1.25rem 1.25rem; }
    .guide-card h3 { font-size:1.02rem; }
    .guide-card p { font-size:0.88rem; }
}

/* 메인 페이지 가이드 섹션 */
.home-guide-section { background:linear-gradient(135deg,#f0f4ff 0%,#eef2ff 100%); border-radius:14px; padding:2rem 1.75rem; margin:2.5rem 0; }
.home-guide-section h2 { font-size:1.3rem; color:#1f2937; margin:0 0 0.5rem; }
.home-guide-section .home-guide-sub { color:#4b5563; font-size:0.95rem; margin-bottom:1.25rem; }
.home-guide-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:0.75rem; }
.home-guide-grid a { display:block; background:#fff; border:1px solid #e0e7ff; border-radius:10px; padding:0.9rem 1rem; text-decoration:none; color:#1f2937; font-size:0.93rem; font-weight:500; line-height:1.5; transition:all 0.15s; }
.home-guide-grid a:hover { border-color:#4f46e5; box-shadow:0 4px 12px rgba(79,70,229,0.1); transform:translateY(-1px); }
.home-guide-more { text-align:right; margin-top:1rem; }
.home-guide-more a { color:#4f46e5; font-size:0.9rem; text-decoration:none; font-weight:500; }
.home-guide-more a:hover { text-decoration:underline; }

/* Breadcrumb 네비게이션 (E-E-A-T) */
.breadcrumb-nav { max-width:900px; margin:1rem auto 0; padding:0 1rem; }
.breadcrumb-list { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:0.4rem; font-size:0.85rem; color:#6b7280; }
.breadcrumb-list li { display:flex; align-items:center; }
.breadcrumb-list li:not(:last-child)::after { content:"›"; margin-left:0.4rem; color:#9ca3af; }
.breadcrumb-list a { color:#6b7280; text-decoration:none; }
.breadcrumb-list a:hover { color:#2563eb; text-decoration:underline; }
.breadcrumb-list li[aria-current="page"] { color:#1f2937; font-weight:500; max-width:60vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 작성자 byline (가이드 페이지) */
.author-byline { max-width:900px; margin:0.6rem auto 0; padding:0.6rem 1rem; font-size:0.85rem; color:#6b7280; border-top:1px solid #f3f4f6; border-bottom:1px solid #f3f4f6; background:#fafbff; display:flex; flex-wrap:wrap; gap:0.5rem; align-items:center; }
.author-byline-name { color:#1f2937; font-weight:500; }
.author-byline-sep { color:#d1d5db; }
.author-byline-date { color:#6b7280; }

@media (max-width:640px) {
    .breadcrumb-nav, .author-byline { padding:0 0.75rem; }
    .breadcrumb-list { font-size:0.8rem; }
    .author-byline { font-size:0.8rem; }
}

/* 🆕 최신 가이드 섹션 (메인 페이지) */
.home-latest-guides { max-width:1100px; margin:2rem auto 1rem; padding:1.5rem 1rem; background:linear-gradient(135deg,#fefce8 0%,#fff7ed 100%); border-radius:14px; border:1px solid #fde68a; }
.home-latest-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:0.5rem; margin-bottom:0.4rem; }
.home-latest-header h2 { font-size:1.25rem; margin:0; color:#92400e; font-weight:700; }
.home-latest-more { color:#b45309; text-decoration:none; font-size:0.9rem; font-weight:500; }
.home-latest-more:hover { text-decoration:underline; }
.home-latest-sub { font-size:0.88rem; color:#78350f; margin:0 0 1rem; }
.home-latest-rss { color:#c2410c; text-decoration:none; font-weight:500; margin-left:0.3rem; }
.home-latest-rss:hover { text-decoration:underline; }
.home-latest-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:0.75rem; }
.home-latest-card { display:block; background:#fff; border:1px solid #fde68a; border-radius:10px; padding:0.9rem 1rem; text-decoration:none; color:#1f2937; transition:all 0.15s; position:relative; }
.home-latest-card:hover { border-color:#f59e0b; box-shadow:0 4px 12px rgba(245,158,11,0.15); transform:translateY(-1px); }
.home-latest-card h3 { font-size:0.95rem; margin:0.3rem 0 0.35rem; line-height:1.4; color:#1f2937; font-weight:600; }
.home-latest-card p { font-size:0.83rem; color:#6b7280; margin:0; line-height:1.5; }
.home-latest-cat { display:inline-block; font-size:0.7rem; font-weight:700; padding:0.2rem 0.5rem; border-radius:4px; background:#fef3c7; color:#92400e; letter-spacing:0.02em; }
.home-latest-cat[data-cat="finance"] { background:#d1fae5; color:#065f46; }
.home-latest-cat[data-cat="tax"] { background:#fee2e2; color:#991b1b; }
.home-latest-cat[data-cat="life"] { background:#ffedd5; color:#9a3412; }
.home-latest-cat[data-cat="law"] { background:#ede9fe; color:#5b21b6; }
.home-latest-cat[data-cat="health"] { background:#fce7f3; color:#9d174d; }

@media (max-width:640px) {
    .home-latest-guides { padding:1.25rem 0.75rem; margin:1.5rem 0.5rem 1rem; }
    .home-latest-header h2 { font-size:1.1rem; }
}

/* 🗂️ 전체 계산기 SSR 섹션 (메인 페이지 — 크롤러 발견 + 사용자 직접 탐색용) */
.home-all-calcs { max-width:1100px; margin:2rem auto; padding:1.5rem 1rem; }
.home-all-calcs h2 { font-size:1.25rem; margin:0 0 0.25rem; color:#1f2937; font-weight:700; }
.home-all-calcs-sub { font-size:0.88rem; color:#6b7280; margin:0 0 1.5rem; }
.all-calcs-cat { margin-bottom:1.5rem; }
.all-calcs-cat h3 { font-size:1rem; color:#1f2937; margin:0 0 0.6rem; padding-bottom:0.4rem; border-bottom:2px solid #e5e7eb; font-weight:600; display:flex; align-items:center; gap:0.5rem; }
.all-calcs-count { font-size:0.75rem; color:#6b7280; font-weight:400; background:#f3f4f6; padding:0.15rem 0.5rem; border-radius:4px; }
.all-calcs-list { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:0.35rem 1rem; }
.all-calcs-list li { padding:0.3rem 0; }
.all-calcs-list a { color:#374151; text-decoration:none; font-size:0.88rem; line-height:1.4; display:inline-block; transition:color 0.1s; }
.all-calcs-list a:hover { color:#2563eb; text-decoration:underline; }
@media (max-width:640px) {
    .home-all-calcs { padding:1.25rem 0.75rem; }
    .all-calcs-list { grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:0.2rem 0.5rem; }
    .all-calcs-list a { font-size:0.82rem; }
}
