:root { --primary: #4f46e5; --secondary: #10b981; --bg: #f8fafc; --text: #1e293b; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); margin: 0; padding: 0; }

.header {
    background: white;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.header nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
}

.tabs { display: flex; background: white; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.tab { flex: 1; padding: 15px; text-align: center; font-weight: bold; font-size: 0.9rem; color: #94a3b8; cursor: pointer; border-bottom: 3px solid transparent; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab.active.target { color: var(--secondary); border-bottom-color: var(--secondary); }

.container { padding: 15px; max-width: 600px; margin: 0 auto; }
.calc-page { display: none; }
.calc-page.active { display: block; }

.card { background: white; border-radius: 16px; padding: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); margin-bottom: 20px; }

/* PDF 내보내기 영역 */
.pdf-area { padding: 15px; background: white; border-radius: 12px; }
.cond-table { width: 100%; border-collapse: collapse; margin-bottom: 15px; font-size: 0.85rem; border: 1px solid #e2e8f0; }
.cond-table th, .cond-table td { border: 1px solid #e2e8f0; padding: 8px; text-align: left; }
.cond-table th { background: #f8fafc; color: #64748b; width: 40%; }

.input-group { margin-bottom: 1.2rem; }
label { display: block; font-size: 0.85rem; font-weight: 600; color: #64748b; margin-bottom: 8px; }
input[type="text"] { width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 1rem; font-weight: bold; text-align: right; }
input[type="range"] { width: 100%; height: 6px; background: #e2e8f0; border-radius: 5px; appearance: none; outline: none; margin: 15px 0; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 24px; height: 24px; background: white; border: 2px solid var(--primary); border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }

.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.res-item { background: #f1f5f9; padding: 12px; border-radius: 10px; text-align: center; }
.res-label { font-size: 0.75rem; color: #64748b; margin-bottom: 4px; }
.res-value { font-size: 1rem; font-weight: bold; color: var(--text); }
.main-res { grid-column: span 2; background: #eef2ff; padding: 20px; }
.target-page .main-res { background: #ecfdf5; }

.btn-pdf { width: 100%; padding: 12px; background: #475569; color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.chart-container { position: relative; height: 250px; width: 100%; margin-top: 10px; }

.blog-list .blog-post-summary {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.blog-list .blog-post-summary h2 {
    margin-top: 0;
}

.blog-list .blog-post-summary h2 a {

    color: var(--primary);

    text-decoration: none;

}



@media (max-width: 768px) {

    .header {

        flex-direction: column;

        padding: 10px;

    }



    .header .logo {

        margin-bottom: 10px;

    }



    .header nav {

        display: flex;

        flex-wrap: wrap;

        justify-content: center;

    }



    .header nav a {

        font-size: 0.8rem;

        margin: 5px 8px;

    }



    .tabs {

        flex-direction: column;

    }



    .tab {

        padding: 10px;

        font-size: 0.8rem;

    }



    .container {

        padding: 10px;

    }



    .card {

        padding: 15px;

    }



    .res-grid {

        grid-template-columns: 1fr;

    }



    .input-group {

        margin-bottom: 1rem;

    }

}