/* =========================================================
   DWERT TOOLS - MASTER BASE STYLE
   ========================================================= */


/* =========================================================
   기본 초기화
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.dwert-tool-page {
    margin: 0;
    padding: 0;
    background: #f5f7fb;
    color: #172033;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Pretendard",
        "Noto Sans KR",
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}


/* =========================================================
   전체 TOOL 영역
   ========================================================= */

#dwert-tool-app {
    width: 100%;
    min-height: 100vh;
}

.dwert-tool {
    width: min(100% - 32px, 1120px);
    margin: 0 auto;
    padding: 56px 0 80px;
}


/* =========================================================
   제목 영역
   ========================================================= */

.dwert-tool h1 {
    margin: 0 0 12px;
    color: #14213d;
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.dwert-tool > p,
.dwert-tool-intro > p {
    max-width: 720px;
    margin: 0 0 32px;
    color: #667085;
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   공통 카드
   ========================================================= */

.dwert-tool-card {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 20px;
    padding: 28px;
    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.03),
        0 8px 30px rgba(16, 24, 40, 0.05);
}


/* =========================================================
   TOOL 전용 헤더
   ========================================================= */

.dwert-tool-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e9edf3;
}

.dwert-tool-header-inner {
    width: min(100% - 32px, 1120px);
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dwert-tool-brand {
    color: #172033;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.dwert-tool-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.dwert-tool-nav a {
    color: #475467;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}


/* =========================================================
   입력 요소
   ========================================================= */

.dwert-field {
    margin-bottom: 22px;
}

.dwert-field > label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.dwert-field input[type="number"],
.dwert-field input[type="text"],
.dwert-field select {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    background: #ffffff;
    color: #172033;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    font: inherit;
    font-size: 16px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.dwert-field input[type="number"]:focus,
.dwert-field input[type="text"]:focus,
.dwert-field select:focus {
    border-color: #356df3;
    box-shadow: 0 0 0 4px rgba(53, 109, 243, 0.12);
}

.dwert-field input::placeholder {
    color: #98a2b3;
}

.dwert-field > small {
    display: block;
    margin-top: 7px;
    color: #667085;
    font-size: 13px;
}


/* =========================================================
   빠른 선택 버튼
   ========================================================= */

.dwert-quick-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.dwert-quick-button {
    min-width: 82px;
    min-height: 40px;
    padding: 0 14px;
    background: #f8fafc;
    color: #344054;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.dwert-quick-button:hover {
    background: #f0f5ff;
    border-color: #84a9ff;
    color: #285bd4;
}

.dwert-quick-button:active {
    transform: translateY(1px);
}

.dwert-quick-button.is-active {
    background: #356df3;
    border-color: #356df3;
    color: #ffffff;
    box-shadow:
        0 3px 10px rgba(53, 109, 243, 0.18);
}


/* =========================================================
   라디오 선택 카드
   ========================================================= */

.dwert-radio-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.dwert-radio-option {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    margin: 0 !important;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.dwert-radio-option:hover {
    border-color: #98a2b3;
}

.dwert-radio-option input[type="radio"] {
    appearance: auto;
    -webkit-appearance: radio;
    width: 20px;
    height: 20px;
    min-height: 0;
    flex: 0 0 20px;
    margin: 0;
    padding: 0;
    accent-color: #356df3;
    box-shadow: none;
    cursor: pointer;
}

.dwert-radio-option span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dwert-radio-option strong {
    color: #172033;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

.dwert-radio-option small {
    display: block;
    margin: 0;
    color: #667085;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.dwert-radio-option:has(input[type="radio"]:checked) {
    background: #f0f5ff;
    border-color: #356df3;
    box-shadow:
        0 0 0 3px rgba(53, 109, 243, 0.08);
}


/* =========================================================
   메인 계산 버튼
   ========================================================= */

.dwert-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: #356df3;
    color: #ffffff;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.dwert-button:hover {
    background: #285bd4;
    box-shadow:
        0 6px 16px rgba(53, 109, 243, 0.20);
}

.dwert-button:active {
    transform: translateY(1px);
}


/* =========================================================
   KPI / 결과 카드
   ========================================================= */

.dwert-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dwert-kpi {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    padding: 20px;
}

.dwert-kpi-label {
    margin-bottom: 8px;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.dwert-kpi-value {
    color: #172033;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.03em;
    word-break: keep-all;
}


/* =========================================================
   결과 HERO
   ========================================================= */

.dwert-result-hero {
    padding: 32px;
    border-radius: 22px;
    background:
        linear-gradient(
            135deg,
            #173b8f 0%,
            #356df3 100%
        );
    color: #ffffff;
}

.dwert-result-label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.82;
}

.dwert-result-value {
    font-size: clamp(34px, 7vw, 52px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.045em;
}


/* =========================================================
   공통 섹션
   ========================================================= */

.dwert-section {
    margin-top: 28px;
}

.dwert-section-title {
    margin: 0 0 16px;
    color: #172033;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.dwert-section-description {
    max-width: 760px;
    margin: -6px 0 18px;
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   일반형 vs 우대형 비교
   ========================================================= */

.dwert-compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dwert-compare-card {
    position: relative;
    min-width: 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.03),
        0 6px 20px rgba(16, 24, 40, 0.04);
    overflow: hidden;
}

.dwert-compare-card-highlight {
    background:
        linear-gradient(
            180deg,
            #f4f7ff 0%,
            #ffffff 100%
        );
    border-color: #9db9ff;
}

.dwert-compare-card-highlight::before {
    content: "정부기여율 높음";
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 9px;
    background: #e9efff;
    color: #285bd4;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

.dwert-compare-label {
    margin-bottom: 10px;
    color: #475467;
    font-size: 14px;
    font-weight: 700;
}

.dwert-compare-value {
    color: #172033;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.04em;
    word-break: keep-all;
}

.dwert-compare-card-highlight .dwert-compare-value {
    color: #285bd4;
}

.dwert-compare-description {
    margin-top: 8px;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   비교 차이 요약
   ========================================================= */

.dwert-compare-difference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 20px 24px;
    background:
        linear-gradient(
            135deg,
            #edf4ff 0%,
            #f8fbff 100%
        );
    border: 1px solid #cbdcff;
    border-radius: 18px;
    box-shadow:
        0 6px 22px rgba(53, 109, 243, 0.08);
}

.dwert-compare-difference span {
    color: #344054;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.dwert-compare-difference strong {
    flex: 0 0 auto;
    color: #285bd4;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.04em;
}


/* =========================================================
   금리 비교
   ========================================================= */

.dwert-rate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dwert-rate-card {
    position: relative;
    min-width: 0;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.03),
        0 5px 18px rgba(16, 24, 40, 0.04);
}

.dwert-rate-card-highlight {
    background:
        linear-gradient(
            180deg,
            #f3f7ff 0%,
            #ffffff 100%
        );
    border-color: #9db9ff;
}

.dwert-rate-label {
    margin-bottom: 10px;
    color: #475467;
    font-size: 14px;
    font-weight: 800;
}

.dwert-rate-value {
    color: #172033;
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.04em;
    word-break: keep-all;
}

.dwert-rate-card-highlight .dwert-rate-value {
    color: #285bd4;
}

.dwert-rate-badge {
    display: inline-flex;
    margin-top: 12px;
    padding: 5px 9px;
    background: #e9efff;
    color: #285bd4;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

.dwert-rate-difference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    padding: 20px 24px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7faff 100%
        );
    border: 1px solid #d9e5ff;
    border-radius: 16px;
    box-shadow:
        0 4px 16px rgba(53, 109, 243, 0.05);
}

.dwert-rate-difference span {
    color: #344054;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.dwert-rate-difference strong {
    flex: 0 0 auto;
    color: #285bd4;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.035em;
}


/* =========================================================
   그래프
   ========================================================= */

.dwert-chart-card {
    width: 100%;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.03),
        0 8px 24px rgba(16, 24, 40, 0.05);
}

.dwert-chart-row {
    width: 100%;
}

.dwert-chart-row + .dwert-chart-row {
    margin-top: 22px;
}

.dwert-chart-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 9px;
}

.dwert-chart-label {
    color: #475467;
    font-size: 14px;
    font-weight: 800;
}

.dwert-chart-value {
    color: #172033;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.dwert-chart-track {
    position: relative;
    width: 100%;
    height: 18px;
    overflow: hidden;
    background: #eef2f7;
    border-radius: 999px;
}

.dwert-chart-bar {
    width: 0;
    height: 100%;
    background:
        linear-gradient(
            90deg,
            #8eb1ff 0%,
            #5e8cf5 100%
        );
    border-radius: 999px;
    transition:
        width 0.6s ease;
}

.dwert-chart-bar-highlight {
    background:
        linear-gradient(
            90deg,
            #285bd4 0%,
            #356df3 100%
        );
    box-shadow:
        0 0 12px rgba(53, 109, 243, 0.22);
}

.dwert-chart-note {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #eaecf0;
    color: #667085;
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   관련 TOOL
   ========================================================= */

.dwert-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dwert-related-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    min-width: 0;
    min-height: 156px;
    padding: 22px;
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fbfcff 100%
        );
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.03),
        0 6px 20px rgba(16, 24, 40, 0.04);
}

.dwert-related-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background:
        linear-gradient(
            135deg,
            #edf4ff 0%,
            #e4edff 100%
        );
    color: #285bd4;
    border: 1px solid #d8e5ff;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.dwert-related-content {
    min-width: 0;
}

.dwert-related-kicker {
    margin-bottom: 4px;
    color: #356df3;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.dwert-related-content h3 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.dwert-related-content p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.65;
}

.dwert-related-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 9px;
    background: #f2f4f7;
    color: #667085;
    border: 1px solid #eaecf0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

a.dwert-related-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.18s ease;
}

a.dwert-related-card:hover {
    border-color: #a9c2ff;
    box-shadow:
        0 8px 26px rgba(53, 109, 243, 0.10);
    transform: translateY(-2px);
}

a.dwert-related-card:hover
.dwert-related-content h3 {
    color: #285bd4;
}


/* =========================================================
   현재 계산기 다시 사용 CTA
   ========================================================= */

.dwert-related-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 14px;
    padding: 20px 22px;
    background:
        linear-gradient(
            135deg,
            #edf4ff 0%,
            #f8fbff 100%
        );
    border: 1px solid #cbdcff;
    border-radius: 16px;
}

.dwert-related-current > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dwert-related-current strong {
    color: #172033;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.dwert-related-current span {
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}

.dwert-related-current-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    background: #356df3;
    color: #ffffff;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.dwert-related-current-link::after {
    content: "↑";
    margin-left: 7px;
    font-size: 13px;
    font-weight: 900;
}


/* =========================================================
   계산 기준
   ========================================================= */

.dwert-standard-card {
    width: 100%;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.03),
        0 8px 24px rgba(16, 24, 40, 0.05);
}

.dwert-standard-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: #edf4ff;
    border: 1px solid #d5e3ff;
    border-radius: 999px;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
}

.dwert-standard-date strong {
    color: #285bd4;
    font-size: 13px;
    font-weight: 900;
}

.dwert-standard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dwert-standard-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 104px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #eaecf0;
    border-radius: 14px;
}

.dwert-standard-item span {
    margin-bottom: 8px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.dwert-standard-item strong {
    margin-top: auto;
    color: #172033;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.025em;
    word-break: keep-all;
}

.dwert-standard-notice {
    margin-top: 18px;
    padding: 18px 20px;
    background:
        linear-gradient(
            135deg,
            #f3f7ff 0%,
            #f9fbff 100%
        );
    border: 1px solid #d9e5ff;
    border-radius: 14px;
    color: #475467;
    font-size: 13px;
    line-height: 1.7;
}

.dwert-standard-source {
    position: relative;
    margin-top: 14px;
    padding: 14px 16px 14px 36px;
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.dwert-standard-source::before {
    content: "✓";
    position: absolute;
    left: 14px;
    top: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #e9efff;
    color: #285bd4;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 900;
}


/* =========================================================
   안내
   ========================================================= */

.dwert-notice {
    max-width: 760px;
    padding: 18px 20px;
    background: #f0f5ff;
    border: 1px solid #d9e5ff;
    border-radius: 14px;
    color: #344054;
    font-size: 14px;
}

.dwert-ad-space {
    width: 100%;
    min-height: 100px;
    margin: 30px 0;
}

.dwert-tool-footer {
    margin-top: 60px;
    padding: 28px 16px;
    border-top: 1px solid #e6eaf0;
    color: #98a2b3;
    text-align: center;
    font-size: 13px;
}


/* =========================================================
   TOOL 태블릿
   ========================================================= */

@media (max-width: 900px) {

    .dwert-standard-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dwert-related-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dwert-related-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .dwert-related-status {
        grid-column: 2;
        justify-self: start;
    }

    .dwert-related-icon {
        width: 44px;
        height: 44px;
    }
}


/* =========================================================
   TOOL 태블릿 / 모바일
   ========================================================= */

@media (max-width: 768px) {

    .dwert-tool {
        width: min(100% - 24px, 1120px);
        padding: 34px 0 60px;
    }

    .dwert-tool h1 {
        font-size: 30px;
    }

    .dwert-tool > p,
    .dwert-tool-intro > p {
        margin-bottom: 24px;
        font-size: 15px;
    }

    .dwert-tool-card {
        padding: 20px;
        border-radius: 16px;
    }

    .dwert-kpi-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dwert-kpi {
        padding: 16px;
    }

    .dwert-kpi-value {
        font-size: 20px;
    }

    .dwert-result-hero {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .dwert-tool-nav {
        display: none;
    }

    .dwert-tool-header-inner {
        height: 60px;
    }
}


/* =========================================================
   TOOL 모바일
   ========================================================= */

@media (max-width: 640px) {

    .dwert-radio-group {
        grid-template-columns: 1fr;
    }

    .dwert-radio-option {
        min-height: 68px;
    }

    .dwert-quick-group {
        display: grid;
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .dwert-quick-button {
        width: 100%;
        min-width: 0;
        padding: 0 8px;
    }

    .dwert-compare-grid {
        grid-template-columns: 1fr;
    }

    .dwert-compare-card {
        padding: 20px;
    }

    .dwert-compare-difference,
    .dwert-rate-difference {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 18px;
    }

    .dwert-compare-difference strong {
        font-size: 26px;
    }

    .dwert-rate-grid {
        grid-template-columns: 1fr;
    }

    .dwert-rate-card {
        padding: 18px;
    }

    .dwert-rate-difference strong {
        font-size: 24px;
    }

    .dwert-chart-card {
        padding: 20px;
        border-radius: 16px;
    }

    .dwert-related-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dwert-related-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 13px;
        min-height: 0;
        padding: 18px;
        border-radius: 16px;
    }

    .dwert-related-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .dwert-related-content h3 {
        font-size: 16px;
    }

    .dwert-related-content p {
        font-size: 12px;
    }

    .dwert-related-current {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px;
    }

    .dwert-related-current-link {
        width: 100%;
        min-height: 46px;
    }

    .dwert-standard-card {
        padding: 20px;
        border-radius: 16px;
    }

    .dwert-standard-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .dwert-standard-item {
        min-height: 0;
        padding: 15px 16px;
    }

    .dwert-standard-item span {
        margin-bottom: 4px;
    }

    .dwert-standard-item strong {
        margin-top: 0;
        font-size: 16px;
    }

    .dwert-standard-notice {
        padding: 16px;
        font-size: 12px;
    }
}


/* =========================================================
   TOOL 아주 작은 모바일
   ========================================================= */

@media (max-width: 380px) {

    .dwert-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dwert-tool {
        width: min(100% - 20px, 1120px);
    }

    .dwert-quick-button {
        font-size: 13px;
    }

    .dwert-chart-info {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .dwert-related-card {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 16px;
    }

    .dwert-related-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}


/* =========================================================
   HOMEPAGE - 사이드바 제거 / 본문 풀폭

   홈페이지만 적용됩니다.
   일반 게시글 / 일반 페이지의 사이드바는 그대로 유지됩니다.
   ========================================================= */

body.home #right-sidebar {
    display: none !important;
}

body.home #primary,
body.home .content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

body.home .site-content {
    display: block !important;
}

body.home .site-content > #primary {
    width: 100% !important;
}

body.home .inside-article {
    width: 100% !important;
}


/* =========================================================
   HOMEPAGE HERO
   ========================================================= */

.dwert-home-hero {
    width: 100%;
    margin: 0 0 30px;
}

.dwert-home-hero-inner {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 340px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 48px 46px;

    background:
        radial-gradient(
            circle at 92% 12%,
            rgba(91, 142, 255, 0.30),
            transparent 29%
        ),
        radial-gradient(
            circle at 78% 95%,
            rgba(39, 92, 214, 0.24),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #101c35 0%,
            #172d59 52%,
            #1b428f 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;

    box-shadow:
        0 2px 4px rgba(16, 24, 40, 0.04),
        0 20px 50px rgba(16, 35, 75, 0.18);
}

.dwert-home-hero-inner::before {
    content: "";

    position: absolute;
    z-index: -1;

    width: 260px;
    height: 260px;

    top: -150px;
    right: -90px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}

.dwert-home-hero-inner::after {
    content: "";

    position: absolute;
    z-index: -1;

    width: 150px;
    height: 150px;

    right: 70px;
    bottom: -105px;

    background: rgba(255, 255, 255, 0.045);

    border-radius: 50%;
}


/* HERO 배지 */

.dwert-home-hero-badge {
    display: inline-flex;
    align-items: center;

    width: fit-content;
    min-height: 30px;

    margin-bottom: 17px;
    padding: 0 12px;

    background: rgba(255, 255, 255, 0.10);
    color: #dbe7ff;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* HERO 제목 */

.dwert-home-hero h1 {
    max-width: 650px;

    margin: 0 0 18px !important;

    color: #ffffff !important;

    font-size: clamp(36px, 5.3vw, 52px);
    font-weight: 900;
    line-height: 1.18;

    letter-spacing: -0.055em;
    word-break: keep-all;
}


/* HERO 설명 */

.dwert-home-hero > .dwert-home-hero-inner > p {
    max-width: 650px;

    margin: 0 !important;

    color: rgba(255, 255, 255, 0.74) !important;

    font-size: 15px;
    line-height: 1.8;

    word-break: keep-all;
}


/* HERO 특징 */

.dwert-home-hero-features {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;

    margin-top: 27px;
}

.dwert-home-hero-feature {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    min-height: 38px;

    padding: 0 13px;

    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.90);

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.dwert-home-hero-feature span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    background: #ffffff;
    color: #285bd4;

    border-radius: 50%;

    font-size: 10px;
    font-weight: 900;
}


/* =========================================================
   HOMEPAGE - 금융·저축 TOOL
   ========================================================= */

.dwert-home-tools {
    width: 100%;
    margin: 30px 0 54px;
}

.dwert-home-tools-shell {
    position: relative;
    overflow: hidden;

    padding: 30px;

    background:
        radial-gradient(
            circle at top right,
            rgba(53, 109, 243, 0.11),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #f7faff 0%,
            #fbfcff 48%,
            #f4f7ff 100%
        );

    border: 1px solid #dfe7f5;
    border-radius: 26px;

    box-shadow:
        0 2px 4px rgba(16, 24, 40, 0.02),
        0 16px 44px rgba(16, 24, 40, 0.07);
}


/* 홈 계산기 상단 */

.dwert-home-tools-header {
    max-width: 650px;
    margin-bottom: 24px;
}

.dwert-home-tools-eyebrow {
    display: inline-flex;
    align-items: center;

    min-height: 28px;
    margin-bottom: 10px;
    padding: 0 11px;

    background: #e8efff;
    color: #285bd4;

    border: 1px solid #d4e1ff;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
}

.dwert-home-tools-header h2 {
    margin: 0 0 10px !important;

    color: #14213d;

    font-size: clamp(27px, 4vw, 36px);
    font-weight: 900;
    line-height: 1.25;

    letter-spacing: -0.045em;
}

.dwert-home-tools-header p {
    margin: 0 !important;

    color: #667085;

    font-size: 15px;
    line-height: 1.75;
}


/* 홈 대표 계산기 */

.dwert-home-tool-featured {
    position: relative;

    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 42px;
    align-items: center;

    gap: 20px;

    min-height: 168px;

    padding: 27px 28px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #173b8f 0%,
            #285bd4 48%,
            #356df3 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;

    color: #ffffff !important;
    text-decoration: none !important;

    box-shadow:
        0 12px 32px rgba(40, 91, 212, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.dwert-home-tool-featured::after {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    top: -105px;
    right: -45px;

    background: rgba(255, 255, 255, 0.08);

    border-radius: 50%;
}

.dwert-home-tool-featured:hover {
    color: #ffffff !important;

    transform: translateY(-3px);

    box-shadow:
        0 18px 40px rgba(40, 91, 212, 0.28);
}

.dwert-home-tool-featured-icon {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    background: rgba(255, 255, 255, 0.14);

    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 18px;

    color: #ffffff;

    font-size: 25px;
    font-weight: 900;
}

.dwert-home-tool-featured-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.dwert-home-tool-badge {
    display: inline-flex;

    margin-bottom: 8px;
    padding: 5px 9px;

    background: rgba(255, 255, 255, 0.15);

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;
}

.dwert-home-tool-featured h3 {
    margin: 0 0 7px !important;

    color: #ffffff !important;

    font-size: 23px;
    font-weight: 900;
    line-height: 1.3;

    letter-spacing: -0.035em;
}

.dwert-home-tool-featured p {
    max-width: 540px;

    margin: 0 !important;

    color: rgba(255, 255, 255, 0.82) !important;

    font-size: 13px;
    line-height: 1.65;
}

.dwert-home-tool-arrow {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    background: #ffffff;
    color: #285bd4;

    border-radius: 50%;

    font-size: 20px;
    font-weight: 900;
}


/* 홈 서브 계산기 */

.dwert-home-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 13px;
    margin-top: 14px;
}

.dwert-home-tool-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 190px;

    padding: 22px;

    background: rgba(255, 255, 255, 0.94);

    border: 1px solid #e1e7f0;
    border-radius: 19px;

    color: inherit !important;
    text-decoration: none !important;

    box-shadow:
        0 2px 4px rgba(16, 24, 40, 0.02),
        0 8px 22px rgba(16, 24, 40, 0.045);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.dwert-home-tool-card:hover {
    border-color: #aac3ff;

    transform: translateY(-3px);

    box-shadow:
        0 12px 28px rgba(40, 91, 212, 0.11);
}

.dwert-home-tool-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 17px;
}

.dwert-home-tool-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    background:
        linear-gradient(
            135deg,
            #edf4ff 0%,
            #e3ecff 100%
        );

    color: #285bd4;

    border: 1px solid #d6e3ff;
    border-radius: 13px;

    font-size: 18px;
    font-weight: 900;
}

.dwert-home-tool-card-arrow {
    color: #98a2b3;
    font-size: 19px;
    font-weight: 700;
}

.dwert-home-tool-kicker {
    margin-bottom: 4px;

    color: #356df3;

    font-size: 11px;
    font-weight: 800;
}

.dwert-home-tool-card h3 {
    margin: 0 0 7px !important;

    color: #172033 !important;

    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;

    letter-spacing: -0.03em;
}

.dwert-home-tool-card p {
    margin: 0 !important;

    color: #667085 !important;

    font-size: 12px;
    line-height: 1.65;
}


/* =========================================================
   HOMEPAGE 모바일
   ========================================================= */

@media (max-width: 700px) {

    .dwert-home-hero {
        margin-bottom: 22px;
    }

    .dwert-home-hero-inner {
        min-height: 0;

        padding: 32px 24px;

        border-radius: 22px;
    }

    .dwert-home-hero-badge {
        margin-bottom: 14px;
    }

    .dwert-home-hero h1 {
        font-size: 34px;
    }

    .dwert-home-hero > .dwert-home-hero-inner > p {
        font-size: 14px;
        line-height: 1.75;
    }

    .dwert-home-hero-features {
        flex-direction: column;
        align-items: flex-start;

        gap: 7px;

        margin-top: 22px;
    }

    .dwert-home-hero-feature {
        min-height: 34px;
        font-size: 11px;
    }


    .dwert-home-tools {
        margin: 22px 0 42px;
    }

    .dwert-home-tools-shell {
        padding: 20px;
        border-radius: 20px;
    }

    .dwert-home-tools-header {
        margin-bottom: 19px;
    }

    .dwert-home-tools-header h2 {
        font-size: 27px;
    }

    .dwert-home-tools-header p {
        font-size: 14px;
    }

    .dwert-home-tool-featured {
        grid-template-columns:
            50px minmax(0, 1fr);

        gap: 14px;

        min-height: 0;

        padding: 21px;

        border-radius: 18px;
    }

    .dwert-home-tool-featured-icon {
        width: 50px;
        height: 50px;

        border-radius: 14px;

        font-size: 20px;
    }

    .dwert-home-tool-featured h3 {
        font-size: 19px;
    }

    .dwert-home-tool-featured p {
        font-size: 12px;
    }

    .dwert-home-tool-arrow {
        display: none;
    }

    .dwert-home-tools-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dwert-home-tool-card {
        min-height: 0;
        padding: 18px;
        border-radius: 16px;
    }

    .dwert-home-tool-card-top {
        margin-bottom: 13px;
    }

    .dwert-home-tool-card h3 {
        font-size: 17px;
    }
}


/* =========================================================
   HOMEPAGE 아주 작은 모바일
   ========================================================= */

@media (max-width: 400px) {

    .dwert-home-hero-inner {
        padding: 27px 20px;
    }

    .dwert-home-hero h1 {
        font-size: 30px;
    }

    .dwert-home-tools-shell {
        padding: 16px;
    }

    .dwert-home-tool-featured {
        grid-template-columns: 1fr;
    }

    .dwert-home-tool-featured-icon {
        width: 46px;
        height: 46px;
    }
}


/* =========================================================
   관련 정보글 카드
   ========================================================= */

.dwert-article-section {
    margin-top: 46px;
}

.dwert-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}


/* 관련 글 카드 */

.dwert-article-card {
    display: block;
    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e4e7ec;
    border-radius: 18px;

    color: inherit !important;
    text-decoration: none !important;

    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.03),
        0 7px 22px rgba(16, 24, 40, 0.05);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.dwert-article-card:hover {
    color: inherit !important;
    text-decoration: none !important;

    transform: translateY(-3px);

    border-color: #abc3ff;

    box-shadow:
        0 12px 28px rgba(40, 91, 212, 0.11);
}


/* 관련 글 썸네일 */

.dwert-article-thumbnail {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 5 / 4;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #172d59 0%,
            #285bd4 100%
        );
}

.dwert-article-thumbnail img {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: block;

    width: 100%;
    height: 100%;
    max-width: none;

    margin: 0;
    padding: 0;

    object-fit: cover;
    object-position: center center;

    border: 0;
    border-radius: 0;

    transition:
        transform 0.35s ease;
}

.dwert-article-card:hover
.dwert-article-thumbnail img {
    transform: scale(1.025);
}

.dwert-article-placeholder {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        linear-gradient(
            135deg,
            #172d59 0%,
            #285bd4 100%
        );

    color: rgba(255, 255, 255, 0.92);

    text-align: center;

    font-size: 14px;
    font-weight: 900;
    line-height: 1.4;
}


/* 관련 글 콘텐츠 */

.dwert-article-content {
    padding: 17px 18px 19px;
}

.dwert-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 10px;

    color: #98a2b3;

    font-size: 11px;
    font-weight: 600;
}

.dwert-article-category {
    display: inline-flex;
    align-items: center;

    min-height: 24px;

    padding: 0 8px;

    background: #edf4ff;
    color: #285bd4;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
}

.dwert-article-content h3 {
    margin: 0 !important;

    color: #172033 !important;

    font-size: 17px;
    font-weight: 900;
    line-height: 1.45;

    letter-spacing: -0.03em;

    transition:
        color 0.2s ease;
}

.dwert-article-card:hover
.dwert-article-content h3 {
    color: #285bd4 !important;
}


/* 관련 글 읽기 */

.dwert-article-more {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-top: 14px;

    color: #667085;

    font-size: 12px;
    font-weight: 800;
}

.dwert-article-more span {
    color: #356df3;

    font-size: 15px;

    transition:
        transform 0.2s ease;
}

.dwert-article-card:hover
.dwert-article-more span {
    transform: translateX(3px);
}


/* =========================================================
   관련 정보글 - 태블릿
   ========================================================= */

@media (max-width: 900px) {

    .dwert-article-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   관련 정보글 - 모바일
   ========================================================= */

@media (max-width: 640px) {

    .dwert-article-section {
        margin-top: 36px;
    }

    .dwert-article-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dwert-article-card {
        border-radius: 16px;
    }

    .dwert-article-content {
        padding: 16px;
    }

    .dwert-article-content h3 {
        font-size: 16px;
    }
}