.srs-home {
    font-family: 'Outfit', system-ui, sans-serif;
}

.srs-home #hero.hero-school {
    background-color: #112638;
}

.srs-home #hero.hero-school::before {
    background: linear-gradient(100deg, rgb(6 20 34 / 91%), rgb(6 28 38 / 72%) 58%, rgb(6 28 38 / 63%)) !important;
}

.srs-home #hero h1.hero-school-title :is(.title-top, .title-main) {
    color: #fff !important;
}

.srs-home #hero .title-top {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: clamp(1.35rem, 3.3vw, 2.65rem);
    line-height: 1.2;
    letter-spacing: 0.035em;
    text-shadow: 0 2px 12px rgb(0 0 0 / 25%);
}

.srs-home #hero .title-main {
    font-size: clamp(3rem, 9vw, 8rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-shadow: 0 4px 20px rgb(0 0 0 / 20%);
}

.srs-home #hero .hero-school-desc {
    font-size: clamp(1rem, 0.94rem + 0.4vw, 1.2rem) !important;
    font-weight: 500 !important;
    line-height: 1.65 !important;
    max-inline-size: 48ch;
    color: #eef7fa !important;
    border-color: #70d9c9 !important;
    text-shadow: 0 2px 8px rgb(0 0 0 / 36%);
}

.srs-home #hero .hero-title-accent {
    background: linear-gradient(90deg, #70d9c9, transparent);
}

html[lang="am"] .srs-home #hero .hero-school-title :is(.title-top, .title-main) {
    font-family: "Noto Sans Ethiopic", Nyala, Ebrima, sans-serif;
    line-height: 1.2;
    letter-spacing: normal;
}

.srs-home section :is(.display-5, .display-6) {
    line-height: 1.15;
    text-wrap: balance;
}

.srs-dashboard main {
    min-inline-size: 0;
    line-height: 1.5;
}

.srs-dashboard main :is(h1, h2, h3, h4, h5) {
    overflow-wrap: anywhere;
}

.srs-dashboard main :is(.stat-card, .premium-stat-card, .table) {
    font-variant-numeric: tabular-nums;
}

.srs-dashboard .table-responsive {
    overscroll-behavior-inline: contain;
}

.srs-dashboard .nav-tabs {
    row-gap: 0.35rem;
}

:is(.srs-home, .srs-dashboard) :is(a, button, input, select, textarea):focus-visible {
    outline: 2px solid #1683d8;
    outline-offset: 3px;
}

@media screen {
    html[data-theme] .srs-dashboard {
        --dashboard-focus-ring: #0758a5;
        --dashboard-focus-gap: #fff;
        --dashboard-supporting-text: #46576d;
        --dashboard-table-heading: #24384d;
        --dashboard-table-heading-bg: #eaf1f7;
        --dashboard-control-border: #657b90;
    }

    html[data-theme="dark"] .srs-dashboard {
        --dashboard-focus-ring: #8ccbff;
        --dashboard-focus-gap: #101827;
        --dashboard-supporting-text: #c5d2e3;
        --dashboard-table-heading: #f1f5f9;
        --dashboard-table-heading-bg: #26364e;
        --dashboard-control-border: #8196af;
    }

    html[data-theme] .srs-dashboard :is(a[href], button, input, select, textarea, [role="button"], [tabindex]):focus-visible {
        outline: 3px solid var(--dashboard-focus-ring) !important;
        outline-offset: 2px;
        box-shadow: 0 0 0 2px var(--dashboard-focus-gap) !important;
    }

    html[data-theme] .srs-dashboard :is(main, .modal-content) :is(.text-muted, .text-secondary, .text-muted-slate):not(.badge) {
        color: var(--dashboard-supporting-text) !important;
    }

    html[data-theme] .srs-dashboard :is(main, .modal-content) :is(.form-control, .form-select):not(:disabled) {
        border-color: var(--dashboard-control-border) !important;
    }

    html[data-theme] .srs-dashboard :is(main, .modal-content) .form-control::placeholder {
        color: var(--dashboard-supporting-text) !important;
        opacity: 1;
    }

    html[data-theme] .srs-dashboard .table:not(.table-dark) thead :is(th, td) {
        background-color: var(--dashboard-table-heading-bg) !important;
        color: var(--dashboard-table-heading) !important;
    }

    .srs-dashboard .table-responsive .table {
        margin-block-end: 0;
    }

    @media (forced-colors: active) {
        html[data-theme] .srs-dashboard :focus-visible {
            outline-color: Highlight !important;
        }
    }
}

@media (max-width: 991.98px) {
    .srs-home #hero.hero-school::before {
        background: linear-gradient(180deg, rgb(6 20 34 / 87%), rgb(6 28 38 / 68%)) !important;
    }

    .srs-dashboard .mobile-top-bar {
        display: flex !important;
    }

    .srs-dashboard #mainSidebar {
        display: flex !important;
        flex-direction: column;
        position: fixed !important;
        inset-block-start: 0;
        left: -280px !important;
        inline-size: 280px !important;
        max-inline-size: calc(100vw - 2.5rem);
        max-block-size: 100dvh;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        z-index: 1050 !important;
    }

    .srs-dashboard #mainSidebar.active {
        left: 0 !important;
    }

    .srs-dashboard #sidebarOverlay.active {
        display: block;
        position: fixed;
        inset: 0;
        background: rgb(0 0 0 / 55%);
        z-index: 1040;
    }

    .srs-dashboard main {
        width: 100%;
        margin-inline-start: 0 !important;
    }

    .srs-dashboard #mobileMenuBtn,
    .srs-dashboard #sidebarCloseBtn {
        min-inline-size: 44px;
        min-block-size: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .srs-home #hero :is(.title-top, .title-main, .hero-title-accent, .hero-school-desc),
    .srs-home .animate__animated,
    .srs-dashboard .content-fade-in {
        animation: none !important;
    }

    .srs-dashboard #mainSidebar {
        transition: none !important;
    }
}
