/**
 * EDUCARE CENTRAL — Tailwind Extras
 * Polyfill de utilidades em falta no build antigo de tailwind.min.css.
 * Inclui variantes responsivas usadas pelas views: sm:, md:, lg:.
 * Carrega-se depois de tailwind.min.css e antes do custom.css final.
 */

/* ---------- Width / Min-width ---------- */
.w-auto { width: auto; }
.min-w-0 { min-width: 0; }
.max-w-full { max-width: 100%; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }

/* ---------- Flex / Grid fallbacks ---------- */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-shrink-0 { flex-shrink: 0; }

/* ---------- Grid columns (mobile base) ---------- */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-12 { grid-column: span 12 / span 12; }

/* ---------- Spacing extras ---------- */
.gap-5 { gap: 1.25rem; }
.gap-x-2 { column-gap: 0.5rem; }
.gap-y-2 { row-gap: 0.5rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-y-4 { row-gap: 1rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

/* ---------- Arbitrary classes usadas ---------- */
.min-h-\[2\.5rem\] { min-height: 2.5rem; }
.min-h-\[40vh\] { min-height: 40vh; }
.min-h-\[44px\] { min-height: 44px; }
.min-w-\[12rem\] { min-width: 12rem; }
.max-h-\[min\(70vh\,22rem\)\] { max-height: min(70vh, 22rem); }
.z-\[60\] { z-index: 60; }
.z-\[100\] { z-index: 100; }

/* ---------- Pesos e outros ---------- */
.pl-6 { padding-left: 1.5rem; }
.pr-6 { padding-right: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pl-10 { padding-left: 2.5rem; }
.pl-12 { padding-left: 3rem; }
.pr-10 { padding-right: 2.5rem; }
.pr-8 { padding-right: 2rem; }
.break-words { overflow-wrap: break-word; word-wrap: break-word; }

/* ---------- Variantes sm: (>=640px) ---------- */
@media (min-width: 640px) {
    .sm\:w-auto { width: auto; }
    .sm\:min-w-0 { min-width: 0; }
    .sm\:min-w-\[12rem\] { min-width: 12rem; }
    .sm\:max-w-xs { max-width: 20rem; }

    .sm\:flex-col { flex-direction: column; }
    .sm\:flex-nowrap { flex-wrap: nowrap; }
    .sm\:items-end { align-items: flex-end; }
    .sm\:items-stretch { align-items: stretch; }
    .sm\:justify-end { justify-content: flex-end; }
    .sm\:justify-start { justify-content: flex-start; }

    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .sm\:col-span-1 { grid-column: span 1 / span 1; }
    .sm\:col-span-2 { grid-column: span 2 / span 2; }
    .sm\:col-span-3 { grid-column: span 3 / span 3; }
    .sm\:col-span-4 { grid-column: span 4 / span 4; }

    .sm\:px-0 { padding-left: 0; padding-right: 0; }
    .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:pl-10 { padding-left: 2.5rem; }
    .sm\:pr-8 { padding-right: 2rem; }
    .sm\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
    .sm\:p-8 { padding: 2rem; }

    .sm\:mb-8 { margin-bottom: 2rem; }
    .sm\:mt-2 { margin-top: 0.5rem; }

    .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\:space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }

    .sm\:flex-1 { flex: 1 1 0%; }
    .sm\:w-full { width: 100%; }
    .sm\:w-\[12rem\] { width: 12rem; }
    .sm\:w-\[18rem\] { width: 18rem; }
    .sm\:h-8 { height: 2rem; }
    .sm\:h-7 { height: 1.75rem; }
    .sm\:w-7 { width: 1.75rem; }
    .sm\:w-8 { width: 2rem; }
}

/* ---------- Variantes md: (>=768px) ---------- */
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:flex-col { flex-direction: column; }
    .md\:w-1\/2 { width: 50%; }
    .md\:w-1\/3 { width: 33.333333%; }
    .md\:w-2\/3 { width: 66.666667%; }
    .md\:min-h-screen { min-height: 100vh; }
    .md\:items-center { align-items: center; }
    .md\:justify-between { justify-content: space-between; }
    .md\:pl-12 { padding-left: 3rem; }
    .md\:pr-10 { padding-right: 2.5rem; }
    .md\:p-10 { padding: 2.5rem; }
    .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .md\:block { display: block; }
    .md\:hidden { display: none; }
    .md\:mt-0 { margin-top: 0; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:col-span-3 { grid-column: span 3 / span 3; }
    .md\:col-span-4 { grid-column: span 4 / span 4; }
    .md\:col-span-6 { grid-column: span 6 / span 6; }
}

/* ---------- Variantes lg: (>=1024px) ---------- */
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:col-span-4 { grid-column: span 4 / span 4; }
    .lg\:col-span-6 { grid-column: span 6 / span 6; }
    .lg\:col-span-12 { grid-column: span 12 / span 12; }

    .lg\:w-auto { width: auto; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:flex-col { flex-direction: column; }
    .lg\:items-center { align-items: center; }
    .lg\:justify-end { justify-content: flex-end; }
    .lg\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .lg\:max-w-md { max-width: 28rem; }
    .lg\:hidden { display: none; }
    .lg\:block { display: block; }
    .lg\:flex { display: flex; }
}

/* ---------- Garantia de não-sobreposição com tailwind.min.css ----------
 * Declaramos após tailwind.min.css e o custom.css recarrega depois deste.
 * Assim, os botões com "w-full sm:w-auto" passam a ser auto em ≥640px.
 */
