/* Tool Layout Variants */

/* Base Layout Classes */
.tool-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    min-height: calc(100vh - 24rem); /* Subtract header/footer space */
}

/* Responsive Layouts */
@media (max-width: 1023px) {
    .tool-layout {
        flex-direction: column;
        min-height: auto; /* Remove min-height on mobile */
    }
}

@media (min-width: 1024px) {
    .tool-layout {
        flex-direction: row;
    }

    .tool__box {
        flex: 1;
        min-width: 0; /* allow text wrapping */
    }
    
    /* Prevent ad container from compressing in slim and tall layouts */
    .tool--slim > div:last-child,
    .tool--tall > div:last-child {
        flex-shrink: 0;
    }
}