:root {
    color-scheme: light;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: #7aaedc #edf5fb;
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #edf5fb;
}

::-webkit-scrollbar-thumb {
    min-height: 48px;
    border: 2px solid #edf5fb;
    border-radius: 9999px;
    background: linear-gradient(180deg, #7eb8e8, #286faa);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5fa4dc, #1f5688);
}

body {
    min-width: 320px;
    background: #f8fafc;
    color: #0f172a;
}

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

::selection {
    background: #bee3fd;
    color: #142b4a;
}

.school-pattern {
    background-image:
        radial-gradient(circle at 10% 15%, rgb(56 189 248 / 0.12), transparent 28%),
        radial-gradient(circle at 90% 30%, rgb(245 158 11 / 0.12), transparent 25%),
        linear-gradient(135deg, #142b4a 0%, #1f61aa 100%);
}

.soft-grid {
    background-image:
        linear-gradient(rgb(148 163 184 / 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgb(148 163 184 / 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

.carousel-slide {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.025);
    transition: opacity 700ms ease, transform 1200ms ease;
}

.carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.carousel-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.55);
    transition: all 250ms ease;
}

.carousel-dot.is-active {
    width: 2rem;
    background: white;
}

.glass-panel {
    background: rgb(255 255 255 / 0.84);
    box-shadow: 0 20px 55px rgb(15 23 42 / 0.10);
    backdrop-filter: blur(18px);
    border: 1px solid rgb(255 255 255 / 0.75);
}

.card-lift {
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.card-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgb(15 23 42 / 0.10);
}

.prose-school {
    color: #334155;
    line-height: 1.85;
}

.prose-school h2,
.prose-school h3 {
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose-school p {
    margin-bottom: 1rem;
}

.prose-school ul,
.prose-school ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.prose-school ul {
    list-style: disc;
}

.prose-school ol {
    list-style: decimal;
}

.table-scroll::-webkit-scrollbar,
.admin-scroll::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.table-scroll::-webkit-scrollbar-thumb,
.admin-scroll::-webkit-scrollbar-thumb {
    border-radius: 9999px;
    background: #cbd5e1;
}

.table-scroll::-webkit-scrollbar-track,
.admin-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.site-pagination svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.site-pagination-item {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 800;
    transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.site-pagination-item:hover {
    background: #eff8ff;
    color: #1f61aa;
}

.site-pagination-item.is-active {
    background: #1f61aa;
    color: white;
    box-shadow: 0 8px 20px rgb(31 97 170 / 0.24);
}

.site-pagination-item.is-disabled,
.site-pagination-item.is-dots {
    cursor: default;
    color: #94a3b8;
}

.site-pagination-item.is-disabled:hover,
.site-pagination-item.is-dots:hover {
    background: transparent;
    color: #94a3b8;
}

.site-pagination-mobile {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe4ee;
    border-radius: 0.75rem;
    background: white;
    padding: 0.625rem 0.875rem;
    color: #1f61aa;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgb(15 23 42 / 0.05);
}

.site-pagination-mobile.is-disabled {
    cursor: default;
    background: #f8fafc;
    color: #94a3b8;
    box-shadow: none;
}

.focus-ring:focus {
    outline: 3px solid rgb(56 189 248 / 0.28);
    outline-offset: 2px;
}

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