/* === MAIN CALCULATOR CONTAINER (NOW A GRID) === */
.ltd-calculator {
    width: 100%;
    box-sizing: border-box;
}

/* === COLUMN STYLING (MOBILE-FIRST) === */
/* By default, columns are 100% width and stack vertically */
.calc-col {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px; /* This creates space between stacked columns on mobile */
}

/* === TABLET & DESKTOP (3-COLUMN GRID) === */
@media (min-width: 768px) {
    .ltd-calculator {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
        gap: 20px; /* Space between columns */
    }
    
    .calc-col {
        margin-bottom: 0; /* Remove the mobile margin */
    }
}

/* === INPUTS & LABELS === */
.calc-input {
    margin-bottom: 15px;
}
.calc-input label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.calc-input input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* === HEADINGS (MOVED) === */
.calc-col h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* === RESULTS === */
.calc-results p {
    font-size: 1.1em;
    margin: 10px 0;
}
.calc-results strong {
    color: #007bff; /* Blue */
}

/* === ANALYSIS & WARNINGS === */
.calc-analysis p {
    font-size: 0.9em;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

#warning-static {
    background-color: #e6f7ff;
    border: 1px solid #b3e0ff;
}
.warning-hidden {
    display: none;
}
.warning-visible {
    display: block;
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
}
.warning-critical {
    display: block;
    background-color: #fff1f0;
    border: 1px solid #ffccc7;
}