/*
 * main.css — ZOE Recipe Finder
 *
 * Tailwind CDN handles almost everything. This file covers only the gaps:
 *   1. line-clamp safety for older WebKit
 *   2. Number input spinner removal (cleaner look on time fields)
 *   3. Checkbox and radio sizing consistency across browsers
 *   4. Alpine.js x-cloak helper
 */

/* ------------------------------------------------------------------ */
/* line-clamp — vendor prefix + standard property for linter           */
/* ------------------------------------------------------------------ */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Number inputs — hide spin buttons for a cleaner appearance          */
/* ------------------------------------------------------------------ */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ------------------------------------------------------------------ */
/* Checkbox / radio — consistent 16px size across browsers             */
/* ------------------------------------------------------------------ */

input[type="checkbox"],
input[type="radio"] {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* Alpine.js — hide x-cloak elements until Alpine initialises          */
/* ------------------------------------------------------------------ */

[x-cloak] {
    display: none !important;
}