/**
 * DWM Calculator Suite Styles
 * Minimal, fluid, and high-performance CSS.
 */

/* === Fluid Layout Mandate: Global Reset for Plugin Wrappers === */
.dwm-calculator-wrapper,
.dwm-calculator-hub-wrapper {
    /* Use relative sizing instead of fixed pixel dimensions */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box; /* Ensures padding/border doesn't break max-width */
    font-size: 1em; /* Base font size */
    line-height: 1.6;
}

/* Ensure all form elements within the calculator container are fluid */
.dwm-calculator-wrapper form,
.dwm-calculator-wrapper input[type="text"],
.dwm-calculator-wrapper input[type="number"],
.dwm-calculator-wrapper select,
.dwm-calculator-wrapper textarea {
    width: 100%; /* Fluid width */
    max-width: 100%;
    padding: 0.5em; /* Relative padding */
    margin-bottom: 1em; /* Relative margin */
    box-sizing: border-box;
    font-size: 1em;
}

/* Buttons should also be fluid or at least adapt well */
.dwm-calculator-wrapper button,
.dwm-calculator-wrapper input[type="submit"] {
    display: inline-block;
    padding: 0.75em 1.5em;
    font-size: 1em;
    cursor: pointer;
    width: auto; /* Allow buttons to size to content */
}

/* === Calculator Hub Styles (Simple List) === */
.dwm-calculator-hub-wrapper {
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dwm-hub-category-title {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-size: 1.2em; /* Relative font size */
    border-bottom: 1px solid #eee;
    padding-bottom: 0.25em;
}

.dwm-hub-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dwm-hub-list li {
    padding: 0.25em 0;
}

/* Optional: Basic responsive for a future 'grid' layout */
@media (min-width: 768px) {
    .dwm-layout-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}