
/* =========================================
   ChemPE — Shared Calculator Styling
========================================= */

.chempe-page {
    max-width: 1050px;
    margin: 24px auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #d9e3ed;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(20, 50, 80, 0.08);
}

.chempe-title {
    padding: 22px 26px;
    margin-bottom: 24px;
    background: #eaf3fc;
    border-left: 5px solid #1763a0;
    border-radius: 7px;
}

.chempe-title h1 {
    margin: 0 0 8px;
    color: #173f6c;
    font-size: 27px;
}

.chempe-title p {
    margin: 0;
    color: #52667c;
    font-size: 15px;
}

.chempe-section {
    margin: 22px 0;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #dce6f0;
    border-radius: 9px;
}

.chempe-section h2 {
    margin: 0 0 16px;
    color: #174a7b;
    font-size: 20px;
    border-bottom: 1px solid #e0e8f0;
    padding-bottom: 10px;
}

.chempe-equation {
    padding: 16px 20px;
    margin: 16px 0;
    background: #f0f6fc;
    border-left: 4px solid #2876b8;
    border-radius: 5px;
    color: #153d65;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.chempe-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.chempe-table th {
    background: #173f6c;
    color: #ffffff;
    padding: 12px;
    text-align: left;
}

.chempe-table td {
    padding: 12px;
    border-bottom: 1px solid #dce5ed;
}

.chempe-table tbody tr:nth-child(even) {
    background: #f4f8fc;
}

.chempe-input,
.chempe-page input[type="number"],
.chempe-page input[type="text"],
.chempe-page select {
    box-sizing: border-box;
    width: 100%;
    max-width: 230px;
    padding: 10px 12px;
    border: 1px solid #b8cbdc;
    border-radius: 6px;
    background: #ffffff;
    color: #25364a;
    font-size: 15px;
}

.chempe-input:focus,
.chempe-page input:focus,
.chempe-page select:focus {
    outline: 2px solid #80b6e5;
    outline-offset: 1px;
}

.chempe-button,
.chempe-page button[type="submit"],
.chempe-page input[type="submit"] {
    display: inline-block;
    padding: 12px 24px;
    background: #1763a0;
    color: #ffffff;
    border: 0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.chempe-button:hover,
.chempe-page button[type="submit"]:hover {
    background: #104c7d;
}

.chempe-result {
    padding: 20px;
    margin: 18px 0;
    background: #edf5fd;
    border: 1px solid #c7deef;
    border-radius: 8px;
}

.chempe-result-value {
    margin: 10px 0;
    font-size: 28px;
    font-weight: bold;
    color: #135b91;
}

.chempe-error {
    padding: 12px 16px;
    margin: 15px 0;
    background: #fff1f0;
    border: 1px solid #e9b7b3;
    border-radius: 6px;
    color: #9b302b;
}

@media (max-width: 700px) {
    .chempe-page {
        margin: 10px;
        padding: 14px;
    }

    .chempe-section {
        padding: 14px;
    }

    .chempe-table {
        font-size: 13px;
    }

    .chempe-table th,
    .chempe-table td {
        padding: 8px;
    }

    .chempe-title h1 {
        font-size: 22px;
    }
}
.chempe-page {
    background: #fff8e8 !important;
    border: 5px solid #d97706 !important;
    padding: 25px !important;
}

.chempe-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.chempe-table th,
.chempe-table td {
    border: 2px solid #1763a0 !important;
    padding: 12px !important;
}
.chempe-resource-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 18px;
}

.chempe-resource-link {
    display: block;
    background: #edf5fc;
    color: #174a7b;
    border: 1px solid #c8dced;
    border-radius: 6px;
    padding: 10px 8px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s ease;
}

.chempe-resource-link:hover,
.chempe-resource-link:focus-visible {
    background: #1763a0;
    color: #ffffff;
}

.chempe-resource-link:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
/* ChemPE — Shared Page Colors */

.chempe-body {
    background-color: #FCF4E9;
}

.chempe-body a:link {
    color: #FF6666;
}

.chempe-body a:visited {
    color: #996666;
}

.chempe-body a:active {
    color: #3333FF;
}