/*
 * Small extras that are not Tailwind utilities.
 * Do NOT define colors or fonts here – those belong in resources/views/partials/theme.blade.php.
 */

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

/*
 * Site content width. Pair with mx-auto and horizontal padding utilities.
 *   < 1440px  → 1240px
 *   < 1750px  → 1450px
 *   ≥ 1750px  → 1750px
 */
.custom-container {
    width: 100%;
    max-width: 1240px;
}

@media (min-width: 1440px) {
    .custom-container {
        max-width: 1450px;
    }
}

@media (min-width: 1750px) {
    .custom-container {
        max-width: 1750px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/*
 * Notice ticker (<x-notice-ticker>): the track holds the list twice and slides
 * left by half its width, so the loop is seamless. Pauses on hover, keyboard
 * focus and the Pause button; never moves for prefers-reduced-motion.
 */
@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.ticker-track {
    animation: ticker-scroll var(--ticker-duration, 45s) linear infinite;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track,
.ticker[data-paused="true"] .ticker-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none !important;
    }
}

