/* =========================================================
   CalcAtlas — Conversions Category
   /assets/css/conversions.css
   ========================================================= */

.thermal-conductivity-page {
    padding-bottom: 32px;
}

.thermal-conductivity-calculator {
    margin: 28px 0 36px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #dbe4e8;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(24, 58, 74, 0.07);
}

.thermal-conductivity-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: end;
}

.thermal-conductivity-field {
    min-width: 0;
}

.thermal-conductivity-value-field {
    grid-column: 1 / -1;
}

.thermal-conductivity-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #243746;
}

.thermal-conductivity-field input,
.thermal-conductivity-field select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 48px;
    padding: 10px 12px;
    border: 1px solid #bfcdd4;
    border-radius: 8px;
    background: #ffffff;
    color: #1f303a;
    font: inherit;
    box-sizing: border-box;
}

.thermal-conductivity-field input:focus,
.thermal-conductivity-field select:focus {
    outline: 2px solid rgba(51, 123, 152, 0.22);
    outline-offset: 1px;
    border-color: #337b98;
}

.thermal-conductivity-swap {
    grid-column: 1 / -1;
    justify-self: center;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid #b8c9d1;
    border-radius: 8px;
    background: #f7fafb;
    color: #285f77;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.thermal-conductivity-swap:hover {
    background: #edf4f7;
}

.thermal-conductivity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.thermal-conductivity-actions button {
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.thermal-conductivity-actions .calculator-primary-button {
    border: 1px solid #337b98;
    background: #337b98;
    color: #ffffff;
}

.thermal-conductivity-actions .calculator-primary-button:hover {
    background: #2b6a84;
}

.thermal-conductivity-actions .calculator-secondary-button {
    border: 1px solid #b8c9d1;
    background: #ffffff;
    color: #285f77;
}

.thermal-conductivity-actions .calculator-secondary-button:hover {
    background: #f5f8f9;
}

.thermal-conductivity-page .calculator-error {
    min-height: 24px;
    margin-top: 14px;
    color: #a32626;
    font-weight: 700;
}

.thermal-conductivity-results {
    margin-top: 28px;
}

.thermal-conductivity-result-card {
    padding: 24px;
    border: 1px solid #c9dce4;
    border-left: 5px solid #337b98;
    border-radius: 10px;
    background: #f8fbfc;
}

.thermal-conductivity-result-label {
    display: block;
    margin-bottom: 6px;
    color: #536873;
    font-size: 0.95rem;
    font-weight: 700;
}

.thermal-conductivity-result-value {
    display: block;
    overflow-wrap: anywhere;
    color: #183a4a;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    line-height: 1.2;
}

.thermal-conductivity-result-summary {
    display: block;
    margin-top: 10px;
    color: #445b66;
    line-height: 1.6;
}

.thermal-conductivity-all {
    margin-top: 28px;
}

.thermal-conductivity-all h2 {
    margin-bottom: 14px;
    font-size: 1.25rem;
}

.thermal-conductivity-table-wrap,
.thermal-conductivity-reference-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.thermal-conductivity-table,
.thermal-conductivity-reference-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    background: #ffffff;
}

.thermal-conductivity-table th,
.thermal-conductivity-table td,
.thermal-conductivity-reference-table th,
.thermal-conductivity-reference-table td {
    padding: 12px 14px;
    border: 1px solid #dbe4e8;
    text-align: left;
    vertical-align: top;
}

.thermal-conductivity-table th,
.thermal-conductivity-reference-table th {
    background: #f2f7f9;
    color: #294a5a;
    font-weight: 700;
}

.thermal-conductivity-table td:last-child {
    font-variant-numeric: tabular-nums;
}

.thermal-conductivity-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-left: 4px solid #87aeba;
    background: #f7fafb;
    color: #445b66;
}

.thermal-conductivity-page .calculator-formula {
    padding: 14px 16px;
    border: 1px solid #dbe4e8;
    border-radius: 8px;
    background: #f7fafb;
    color: #243746;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.thermal-conductivity-page .calculator-content-section {
    margin-top: 38px;
}

.thermal-conductivity-page .calculator-content-section h2 {
    margin-bottom: 14px;
}

.thermal-conductivity-page .calculator-content-section h3 {
    margin-bottom: 8px;
}

.thermal-conductivity-page .calculator-content-section p,
.thermal-conductivity-page .calculator-content-section li {
    line-height: 1.7;
}

.thermal-conductivity-page .calculator-content-section ol {
    padding-left: 22px;
}

.thermal-conductivity-page .calculator-faq {
    padding: 18px 0;
    border-bottom: 1px solid #e1e8eb;
}

.thermal-conductivity-page .calculator-faq:last-child {
    border-bottom: 0;
}

@media (max-width: 768px) {
    .thermal-conductivity-calculator {
        padding: 22px 18px;
    }

    .thermal-conductivity-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .thermal-conductivity-value-field,
    .thermal-conductivity-swap {
        grid-column: auto;
    }

    .thermal-conductivity-swap {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .thermal-conductivity-calculator {
        margin-top: 22px;
        padding: 18px 14px;
        border-radius: 10px;
    }

    .thermal-conductivity-field input,
    .thermal-conductivity-field select {
        font-size: 16px;
    }

    .thermal-conductivity-actions {
        flex-direction: column;
    }

    .thermal-conductivity-actions button {
        width: 100%;
    }

    .thermal-conductivity-result-card {
        padding: 18px 16px;
    }

    .thermal-conductivity-table,
    .thermal-conductivity-reference-table {
        min-width: 470px;
    }
}
