/* Inches ↔ Millimeters Calculator */

.imc-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: #111;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .imc-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Card (no visible border — clean like the reference) */
.imc-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Title */
.imc-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
    padding: 0;
    line-height: 1.3;
}

/* Field wrapper */
.imc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Label */
.imc-label {
    font-size: 14px;
    font-weight: 400;
    color: #111;
    margin: 0;
}

/* Input (editable) */
.imc-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 15px;
    color: #111;
    background: #fff;
    border: 1px solid #aaa;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    -moz-appearance: textfield;
    appearance: textfield;
}

.imc-input::-webkit-inner-spin-button,
.imc-input::-webkit-outer-spin-button {
    opacity: 1; /* keep the spin arrows visible — matches screenshot */
}

.imc-input:focus {
    border-color: #555;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

/* Result (read-only) */
.imc-result {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 15px;
    color: #333;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: default;
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
}

.imc-result::-webkit-inner-spin-button,
.imc-result::-webkit-outer-spin-button {
    -webkit-appearance: none;
}
