/* ==========================================================================
   VestaSys CSS — 05 · Variants
   --------------------------------------------------------------------------
   Layer 5 of 5. Conditional utilities: the same atoms as 04-utilities.css, but
   applied only in a given state (`hover:`, `focus:`, `active:`, `last:`) or at
   or above a given viewport width (`sm:`, `md:`, `lg:`, `xl:`).

   These live in their own file, loaded last, so a variant always beats the
   unconditional utility it overrides:

       <div class="grid-cols-1 md:grid-cols-2">   ← 2 columns from 768px up
       <a class="text-sm hover:text-primary">     ← recolours on hover

   The `:` in a class name must be escaped in the selector — `.md\:grid-cols-2`.

   BREAKPOINTS (min-width, mobile-first)
   -------------------------------------
       sm  640px    md  768px    lg  1024px    xl  1280px

   ADDING A RESPONSIVE UTILITY
   ---------------------------
   Add the line to each breakpoint block that needs it. The blocks deliberately
   carry the same utility list in the same order, so they are easy to diff.
   ========================================================================== */


/* ==========================================================================
   State variants — hover
   ========================================================================== */
.hover\:bg-base-100:hover { background-color: var(--vs-base-100); }
.hover\:bg-base-200:hover { background-color: var(--vs-base-200); }
.hover\:bg-base-300:hover { background-color: var(--vs-base-300); }
.hover\:bg-base-200\/50:hover { background-color: rgb(var(--vs-base-200-rgb) / .5); }
.hover\:bg-base-content\/5:hover { background-color: rgb(var(--vs-base-content-rgb) / .05); }
.hover\:bg-base-content\/10:hover { background-color: rgb(var(--vs-base-content-rgb) / .1); }
.hover\:bg-primary:hover { background-color: var(--vs-primary); }
.hover\:bg-primary\/10:hover { background-color: rgb(var(--vs-primary-rgb) / .1); }
.hover\:bg-primary\/20:hover { background-color: rgb(var(--vs-primary-rgb) / .2); }
.hover\:bg-error\/10:hover { background-color: rgb(var(--vs-error-rgb) / .1); }
.hover\:bg-white\/10:hover { background-color: rgb(var(--vs-white-rgb) / .1); }

.hover\:text-primary:hover { color: var(--vs-primary); }
.hover\:text-error:hover { color: var(--vs-error); }
.hover\:text-base-content:hover { color: var(--vs-base-content); }
.hover\:text-base-content\/70:hover { color: rgb(var(--vs-base-content-rgb) / .7); }
.hover\:text-base-content\/90:hover { color: rgb(var(--vs-base-content-rgb) / .9); }
.hover\:text-white:hover { color: var(--vs-white); }

.hover\:border-primary:hover { border-color: var(--vs-primary); }
.hover\:border-primary\/40:hover { border-color: rgb(var(--vs-primary-rgb) / .4); }
.hover\:border-error:hover { border-color: var(--vs-error); }
.hover\:border-base-300:hover { border-color: var(--vs-base-300); }

.hover\:underline:hover { text-decoration-line: underline; }
.hover\:no-underline:hover { text-decoration-line: none; }

.hover\:shadow:hover { box-shadow: var(--vs-shadow); }
.hover\:shadow-md:hover { box-shadow: var(--vs-shadow-md); }
.hover\:shadow-lg:hover { box-shadow: var(--vs-shadow-lg); }
.hover\:shadow-none:hover { box-shadow: none; }
/* Brand-orange glow used by the kiosk tiles. */
.hover\:shadow-\[0_12px_40px_rgba\(244\,101\,29\,0\.2\)\]:hover { box-shadow: 0 12px 40px rgba(244, 101, 29, 0.2); }

.hover\:opacity-100:hover { opacity: 1; }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:opacity-80:hover { opacity: 0.8; }

/* Lift-on-hover for clickable cards/tiles. */
.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:scale-105:hover { transform: scale(1.05); }


/* ==========================================================================
   State variants — focus / focus-visible / focus-within
   ========================================================================== */
.focus\:border-primary:focus { border-color: var(--vs-primary); }
.focus\:border-error:focus { border-color: var(--vs-error); }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--vs-ring-color, var(--vs-primary)); }
.focus\:bg-base-200:focus { background-color: var(--vs-base-200); }

.focus-visible\:outline-none:focus-visible { outline: 2px solid transparent; outline-offset: 2px; }
.focus-visible\:ring-2:focus-visible { box-shadow: 0 0 0 2px var(--vs-ring-color, var(--vs-primary)); }

/* `focus-within` styles a wrapper while any descendant holds focus — used to
   highlight a field group when its input is focused. */
.focus-within\:border-primary:focus-within { border-color: var(--vs-primary); }
.focus-within\:ring-2:focus-within { box-shadow: 0 0 0 2px var(--vs-ring-color, var(--vs-primary)); }


/* ==========================================================================
   State variants — active / disabled / structural
   ========================================================================== */
.active\:scale-95:active { transform: scale(0.95); }
.active\:scale-100:active { transform: scale(1); }
.active\:bg-base-300:active { background-color: var(--vs-base-300); }

.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* Structural variants — drop the trailing rule/spacing on the final item. */
.first\:mt-0:first-child { margin-top: 0; }
.first\:border-t-0:first-child { border-top-width: 0; }
.last\:border-0:last-child { border-width: 0; }
.last\:border-b-0:last-child { border-bottom-width: 0; }
.last\:mb-0:last-child { margin-bottom: 0; }
.last\:pb-0:last-child { padding-bottom: 0; }
.odd\:bg-base-200\/50:nth-child(odd) { background-color: rgb(var(--vs-base-200-rgb) / .5); }
.even\:bg-base-200\/50:nth-child(even) { background-color: rgb(var(--vs-base-200-rgb) / .5); }


/* ==========================================================================
   Breakpoint: sm — 640px and up
   ========================================================================== */
@media (min-width: 640px) {
    /* Display */
    .sm\:block { display: block; }
    .sm\:inline-block { display: inline-block; }
    .sm\:inline { display: inline; }
    .sm\:flex { display: flex; }
    .sm\:inline-flex { display: inline-flex; }
    .sm\:grid { display: grid; }
    .sm\:hidden { display: none; }

    /* Flex */
    .sm\:flex-row { flex-direction: row; }
    .sm\:flex-col { flex-direction: column; }
    .sm\:flex-wrap { flex-wrap: wrap; }
    .sm\:flex-nowrap { flex-wrap: nowrap; }
    .sm\:items-start { align-items: flex-start; }
    .sm\:items-end { align-items: flex-end; }
    .sm\:items-center { align-items: center; }
    .sm\:justify-start { justify-content: flex-start; }
    .sm\:justify-end { justify-content: flex-end; }
    .sm\:justify-center { justify-content: center; }
    .sm\:justify-between { justify-content: space-between; }

    /* Grid */
    .sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .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\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .sm\:grid-cols-6 { grid-template-columns: repeat(6, 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; }
    /* Label-column detail grids. */
    .sm\:grid-cols-\[10rem_1fr\] { grid-template-columns: 10rem 1fr; }
    .sm\:grid-cols-\[12rem_1fr\] { grid-template-columns: 12rem 1fr; }

    /* Gap */
    .sm\:gap-1 { gap: 0.25rem; } .sm\:gap-2 { gap: 0.5rem; } .sm\:gap-3 { gap: 0.75rem; }
    .sm\:gap-4 { gap: 1rem; } .sm\:gap-6 { gap: 1.5rem; } .sm\:gap-8 { gap: 2rem; }

    /* Padding */
    .sm\:p-0 { padding: 0; } .sm\:p-2 { padding: 0.5rem; } .sm\:p-3 { padding: 0.75rem; }
    .sm\:p-4 { padding: 1rem; } .sm\:p-6 { padding: 1.5rem; } .sm\:p-8 { padding: 2rem; } .sm\:p-10 { padding: 2.5rem; }
    .sm\:px-4 { padding-inline: 1rem; } .sm\:px-6 { padding-inline: 1.5rem; } .sm\:px-8 { padding-inline: 2rem; } .sm\:px-10 { padding-inline: 2.5rem; }
    .sm\:py-4 { padding-block: 1rem; } .sm\:py-6 { padding-block: 1.5rem; } .sm\:py-8 { padding-block: 2rem; }
    .sm\:pt-6 { padding-top: 1.5rem; } .sm\:pt-8 { padding-top: 2rem; }
    .sm\:pb-6 { padding-bottom: 1.5rem; } .sm\:pb-8 { padding-bottom: 2rem; }

    /* Margin */
    .sm\:mt-0 { margin-top: 0; } .sm\:mt-4 { margin-top: 1rem; } .sm\:mt-6 { margin-top: 1.5rem; }
    .sm\:mb-0 { margin-bottom: 0; } .sm\:mb-4 { margin-bottom: 1rem; }

    /* Type */
    .sm\:text-xs { font-size: 0.75rem; line-height: 1rem; }
    .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .sm\:text-5xl { font-size: 3rem; line-height: 1; }
    .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .sm\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .sm\:text-left { text-align: left; }
    .sm\:text-right { text-align: right; }

    /* Sizing */
    .sm\:w-auto { width: auto; } .sm\:w-full { width: 100%; }
    .sm\:w-48 { width: 12rem; } .sm\:w-56 { width: 14rem; } .sm\:w-64 { width: 16rem; }
    .sm\:max-w-md { max-width: 28rem; } .sm\:max-w-lg { max-width: 32rem; }
    .sm\:max-w-xl { max-width: 36rem; } .sm\:max-w-2xl { max-width: 42rem; }
    .sm\:max-w-3xl { max-width: 48rem; } .sm\:max-w-4xl { max-width: 56rem; }

    /* Components */
    .sm\:stats-horizontal { grid-auto-flow: column; }
    .sm\:stats-horizontal > .stat { border-inline-start: 1px solid rgb(var(--vs-base-content-rgb) / 0.10); border-top: 0; }
    .sm\:stats-horizontal > .stat:first-child { border-inline-start: 0; }
}


/* ==========================================================================
   Breakpoint: md — 768px and up
   ========================================================================== */
@media (min-width: 768px) {
    /* Display */
    .md\:block { display: block; }
    .md\:inline-block { display: inline-block; }
    .md\:flex { display: flex; }
    .md\:inline-flex { display: inline-flex; }
    .md\:grid { display: grid; }
    .md\:hidden { display: none; }

    /* Flex */
    .md\:flex-row { flex-direction: row; }
    .md\:flex-col { flex-direction: column; }
    .md\:items-center { align-items: center; }
    .md\:justify-between { justify-content: space-between; }
    .md\:justify-end { justify-content: flex-end; }

    /* Grid */
    .md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .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\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .md\:col-span-1 { grid-column: span 1 / span 1; }
    .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; }
    /* Two label/value pairs side by side, and the workplan's content+aside row. */
    .md\:grid-cols-\[9rem_1fr_9rem_1fr\] { grid-template-columns: 9rem 1fr 9rem 1fr; }
    .md\:grid-cols-\[1fr_14rem_auto\] { grid-template-columns: 1fr 14rem auto; }

    /* Gap */
    .md\:gap-2 { gap: 0.5rem; } .md\:gap-3 { gap: 0.75rem; }
    .md\:gap-4 { gap: 1rem; } .md\:gap-6 { gap: 1.5rem; } .md\:gap-8 { gap: 2rem; }

    /* Padding */
    .md\:p-4 { padding: 1rem; } .md\:p-6 { padding: 1.5rem; } .md\:p-8 { padding: 2rem; }
    .md\:px-6 { padding-inline: 1.5rem; } .md\:px-8 { padding-inline: 2rem; }
    .md\:py-6 { padding-block: 1.5rem; } .md\:py-8 { padding-block: 2rem; }

    /* Type */
    .md\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

    /* Sizing */
    .md\:w-auto { width: auto; } .md\:w-full { width: 100%; }
    .md\:max-w-2xl { max-width: 42rem; } .md\:max-w-3xl { max-width: 48rem; }
}


/* ==========================================================================
   Breakpoint: lg — 1024px and up
   --------------------------------------------------------------------------
   This is the breakpoint the app shell uses to switch the sidebar from a
   fixed slide-in overlay to a sticky column, so it carries a few extra
   position/transform utilities the other breakpoints don't need.
   ========================================================================== */
@media (min-width: 1024px) {
    /* Display */
    .lg\:block { display: block; }
    .lg\:inline-block { display: inline-block; }
    .lg\:flex { display: flex; }
    .lg\:inline-flex { display: inline-flex; }
    .lg\:grid { display: grid; }
    .lg\:hidden { display: none; }

    /* Flex */
    .lg\:flex-row { flex-direction: row; }
    .lg\:flex-col { flex-direction: column; }
    .lg\:items-center { align-items: center; }
    .lg\:justify-between { justify-content: space-between; }

    /* Grid */
    .lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .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-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, 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; }

    /* Gap */
    .lg\:gap-2 { gap: 0.5rem; } .lg\:gap-3 { gap: 0.75rem; }
    .lg\:gap-4 { gap: 1rem; } .lg\:gap-6 { gap: 1.5rem; } .lg\:gap-8 { gap: 2rem; }

    /* Padding */
    .lg\:p-4 { padding: 1rem; } .lg\:p-6 { padding: 1.5rem; } .lg\:p-8 { padding: 2rem; }
    .lg\:px-6 { padding-inline: 1.5rem; } .lg\:px-8 { padding-inline: 2rem; }
    .lg\:py-6 { padding-block: 1.5rem; } .lg\:py-8 { padding-block: 2rem; }

    /* Type */
    .lg\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .lg\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .lg\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .lg\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .lg\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

    /* Position — the app shell's sidebar switches to a sticky column here. */
    .lg\:static { position: static; }
    .lg\:relative { position: relative; }
    .lg\:absolute { position: absolute; }
    .lg\:fixed { position: fixed; }
    .lg\:sticky { position: sticky; }
    .lg\:top-0 { top: 0; }
    .lg\:top-16 { top: 4rem; }
    .lg\:top-20 { top: 5rem; }
    .lg\:z-0 { z-index: 0; }
    .lg\:z-auto { z-index: auto; }
    .lg\:translate-x-0 { transform: translateX(0); }

    /* Sizing — the sidebar fills the viewport minus the 4rem top bar. */
    .lg\:w-auto { width: auto; } .lg\:w-full { width: 100%; }
    .lg\:w-64 { width: 16rem; } .lg\:w-72 { width: 18rem; }
    .lg\:h-\[calc\(100vh-4rem\)\] { height: calc(100vh - 4rem); }

    /* Effects */
    .lg\:shadow-none { box-shadow: none; }
    .lg\:shadow { box-shadow: var(--vs-shadow); }
    .lg\:border-0 { border-width: 0; }
}


/* ==========================================================================
   Breakpoint: xl — 1280px and up
   --------------------------------------------------------------------------
   Nothing in the app uses `xl:` yet; the common atoms are provided so wide-
   screen tuning doesn't need a framework change.
   ========================================================================== */
@media (min-width: 1280px) {
    .xl\:block { display: block; }
    .xl\:flex { display: flex; }
    .xl\:grid { display: grid; }
    .xl\:hidden { display: none; }
    .xl\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .xl\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .xl\:col-span-2 { grid-column: span 2 / span 2; }
    .xl\:col-span-3 { grid-column: span 3 / span 3; }
    .xl\:gap-6 { gap: 1.5rem; } .xl\:gap-8 { gap: 2rem; }
    .xl\:p-8 { padding: 2rem; }
    .xl\:px-8 { padding-inline: 2rem; }
    .xl\:max-w-5xl { max-width: 64rem; }
    .xl\:max-w-6xl { max-width: 72rem; }
    .xl\:max-w-7xl { max-width: 80rem; }
}


/* ==========================================================================
   Reduced motion
   --------------------------------------------------------------------------
   A global courtesy: users who ask the OS for less motion get near-instant
   transitions everywhere rather than each component opting out individually.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
