:root {
    color-scheme: light !important;
    --primary-color: #000000;
    --secondary-color: #5A5A5A;
    --background-color: #fff;
    /*--background-color: #ffe79c;*/
    --text-color: #333;
    /**/
    --button-primary-background: #ffc72c;
    --button-primary-text-color: #1a1a1a;
    --button-primary-border: 2px solid #9a6a00;
    --button-primary-background-hover: #e6b324;
    /**/
    --button-secondary-background: #5A5A5A;
    --button-secondary-text-color: white;
    /**/
    --button-tertiary-background: none;
    --button-tertiary-text-color: #333;
    --button-tertiary-focus-color: #ffd45e;
    /**/
    --button-hover: #005EA6;
    --button-radius: 5px;
    --transition-time: 0.3s;
    --TileBackgroundColor: #f1f1f8;
    --TileBorderColor: #d5d5da;
    --pill-min-width: 140px;
    --pill-max-width: 220px;
    --pill-font-size: 1rem;
    --pill-padding: 0.5rem 1rem;
    --nku-yellow: #ffc72c;
    --nku-black: #000000;
    --nku-gray: #333333;
}

/*@media (prefers-color-scheme: dark) {
    :root {
        --secondary-color: #A0A0A0;
        --background-color: #2E2E2E;
        --text-color: #EAEAEA;*/
        /**/
        /*--button-primary-background: #ffc72c;
        --button-primary-text-color: #1a1a1a;
        --button-primary-border: none;*/
        /**/
        /*--button-secondary-background: #808a94;
        --button-secondary-text-color: white;
        --button-primary-border-color: none;*/
        /**/
        /*--button-tertiary-background: none;
        --button-tertiary-text-color: #333;
        --button-tertiary-border: #8c949b;*/
        /**/
    /*}*/
}


/*  Home Page */

html {
    color-scheme: light !important;
}

.btn {
    font-weight: bold;
}

.home-container {
    padding: 1.5rem;
}

.home-quick-nav .quick-nav-list {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.quick-nav-link {
    color: var(--nku-black);
    text-decoration: underline;
}

.home-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.tile {
    border: 2px solid var(--nku-gray);
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: #fff;
}

    .tile h2 {
        margin-top: 0;
    }

.tileButtonGroup {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* Accessible button styles with high-contrast focus rings */
.buttonPrimary,
.buttonSecondary,
.buttonTertiary {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 0.375rem;
    border: 2px solid transparent;
    font-weight: 600;
    text-decoration: none;
}

.buttonPrimary {
    background-color: var(--nku-gold);
    color: var(--nku-black);
}

.buttonSecondary {
    background-color: #f2f2f2;
    color: var(--nku-black);
    border-color: #d9d9d9;
}

.buttonTertiary {
    background-color: transparent;
    color: var(--nku-black);
    border-color: var(--nku-gray);
}

    .buttonPrimary:focus,
    .buttonSecondary:focus,
    .buttonTertiary:focus,
    .quick-nav-link:focus {
        outline: 3px solid #005a9e; /* High-contrast focus indicator */
        outline-offset: 2px;
    }

/* Utility: visually hidden but accessible heading for main landmark */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
}



/* End Home Page*/







html, body {
    background-color: var(--background-color);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-color);
}
.nku-main {
    background-color: var(--background-color);
}

a, .btn-link {
    color: #006bb7;
}

button{
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 5px;
    text-align: center;
}


/*form {
    background-color: rgba(250,250,250,0.3);
    background-color: rgba(100,100,100,0.1);
}*/

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.buttonPrimary {
    background-color: var(--button-primary-background); /* primary background */
    color: var(--button-primary-text-color); /* dark text for contrast */
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: var(--button-primary-border);
    border-radius: 0.5rem; /* rounded corners */
    cursor: pointer;
    transition: all 0.3s ease; /* smooth hover animation */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


    .buttonPrimary:hover {
        background-color: var(--button-primary-background-hover); /* slightly darker yellow on hover */
        transform: translateY(-2px); /* lift effect */
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    }

    .buttonPrimary:active {
        transform: translateY(0); /* press down */
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    }

    .buttonPrimary:focus {
        outline: 3px solid rgba(255, 199, 44, 0.5); /* accessibility focus ring */
        outline-offset: 3px;
    }

.buttonSecondary {
    background-color: var(--button-secondary-background); /* medium gray */
    color: var(--button-secondary-text-color);
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .buttonSecondary:hover {
        background-color: #5a6268; /* slightly darker hover gray */
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

    .buttonSecondary:active {
        background-color: #545b62; /* pressed state */
        transform: translateY(0);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    }

    .buttonSecondary:focus {
        outline: 3px solid rgba(108, 117, 125, 0.5);
        outline-offset: 3px;
    }

.buttonTertiary {
    background: none;
    color: #1a1a1a;
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid transparent; /* transparent border keeps button height consistent */
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .buttonTertiary:hover {
        color: #1a1a1a; 
        border-color: #6c757d; 
        background-color: rgba(0,0,0,0.05); 
    }

    .buttonTertiary:focus {
        outline: 3px solid rgba(255, 199, 44, 0.5);
        outline-offset: 3px;
    }



.btn:focus, .btn:active:focus,
.btn-link.nav-link:focus, .form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}


h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}



.pageTitle {
    color: var(--text-color);
    margin: auto;
    margin-bottom: 15px;
    text-align: center;
}

/*.submissionForm {
    width: 75%;
    margin: auto;
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    justify-content: start;
    justify-items: start;
    align-content: start;
    align-items: start;
}*/
/*.submissionForm section{
    width: 100%;
    border: 1px solid rgba(0,0,0,0.2);
    
}*/

.formSection{
    width: 100%;
    padding: 10px;
    margin: 10px;
    border: 1px solid #999;
    border-bottom: none;
    border-top: none;
    
}

.formSection header {
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 2.5rem;
    font-family: 'Segoe UI', Roboto, sans-serif;
}


.formGroup{
    width: 75%;
    display: flex;
    flex-flow: column;
    justify-content: start;
    justify-items: start;
    align-content: start;
    align-items: start;
}

.formGroup label{
    font-weight: 500;
}


.formGroup input, .formGroup textarea{
    border-radius: 5px;
    border: 1px solid #000;
}


.formGroup input {
    width: 75%;
    padding: 5px;
    font-size: 15px;
}



.formContainer{
    max-width: 700px;
    margin: auto;
    padding: 20px;
    font-family: sans-serif;
}

.peopleStepper{
    display: flex;
    align-items: center;
    gap: 8px;
}

    .peopleStepper button {
        background: #0057d9;
        color: white;
        border: none;
        padding: 6px 12px;
        font-size: 18px;
        border-radius: 6px;
        cursor: pointer;
    }

.personCard {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    background: #fafafa;
}


.multi-select {
    display: grid;
    gap: .5rem;
}

.ms-input {
    min-height: 2.5rem;
    width: 100%;
    padding: .375rem;
    border: 1px solid #d0d5dd;
    border-radius: .5rem;
}

.ms-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
}

.ms-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .5rem;
    border-radius: 999px;
    border: 1px solid #d0d5dd;
}

.ms-chip-x {
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}



.formSection {
    margin-bottom: 1rem;
}

.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.card-header {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.grid {
    display: grid;
    gap: 12px;
}

.grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.grid-span-2 {
    grid-column: 1 / -1;
}

.formGroup label {
    display: block;
    font-weight: 600;
    margin-bottom: .25rem;
}

.input, .textarea, select, .stepper-input {
    width: 100%;
    padding: .55rem .65rem;
    border: 1px solid #d0d5dd;
    border-radius: .5rem;
}

.textarea {
    min-height: 7rem;
}

.stepper {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .25rem;
}

.stepper-label {
    margin-right: .5rem;
    font-weight: 600;
}

.stepper-input {
    width: 6rem;
    text-align: center;
}

.btn {
    border: 1px solid #d0d5dd;
    background: #f8fafc;
    padding: .45rem .8rem;
    border-radius: .5rem;
    cursor: pointer;
}

    .btn:hover {
        background: #f3f4f6;
    }

    .btn.primary {
        border-color: #1557ff;
        background: #1557ff;
        color: #fff;
    }

    .btn.ghost {
        background: transparent;
    }

.person-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    margin-top: 12px;
    background: #fafafa;
}

.person-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.expander {
    font-size: 1.15rem;
}

.actions {
    display: flex;
    gap: .5rem;
    margin-top: 12px;
}

.muted {
    color: #6b7280;
    font-size: .875rem;
}




.tao {
    width: 100%;
    position: relative;
    margin-top: 10px;
    display: grid;
    gap: .5rem;
}

.tao__label {
    position: absolute;
    top: 0.4rem;
    left: 1rem;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    color: #666;
    pointer-events: none;
    line-height: 0.8rem;/*
    border-radius: 50px;*/
}


.tao__textarea {
    width: 100%;
    gap: 15px;
    padding: 0.35rem .875rem .75rem;
    transition: all 0.2s ease;
    border: 2px solid var(--tao-border, #cfcfcf);
    border-radius: .5rem;
    font: inherit;
    /*font-family: Calibri;*/
    /*font-family: 'Times New Roman';*/
    resize: vertical;
    background: var(--background-color);
    color: var(--text-color);
    scroll-padding-top: 10px;
}

    .tao__textarea:focus {
        /*outline: 3px solid transparent;*/
        /*outline: none;*/
        box-shadow: 0 0 0 3px rgba(0, 110, 255, .25);
        box-shadow: 0 0 0 3px var(--nku-yellow);
        border-color: #6aa2ff;
    }



        /*.tao__textarea:focus + .tao__label,
        .tao__textarea:invalid + .tao__label {
            top: -0.6rem;
            left: 0.8rem;
            font-size: .75rem;
            background: var(--tao-bg, #fff);
            padding: 0 .25rem;
            color: (var);
        }*/


        .tao__textarea:focus + .tao__label,
        .tao__textarea:not(:placeholder-shown) + .tao__label,
        .tao__textarea:invalid + .tao__label {
            top: -0.6rem;
            left: 0.8rem;
            /*font-size: .85rem;*/
            font-size: .95rem;
            background: var(--tao-bg, #fff);
            padding: 0 .15rem;
            /*padding: 0;*/
            color: var(--text-color); /*
            box-shadow: 0px -3px 0 0.5px var(--nku-yellow);
            border-top: 1px solid #000;
            border-radius: 50px;*/
        }



.tao__meta {
    /*position: absolute;
    bottom: -0.75em;
    left: 1rem;*/
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #666;
    padding: 0, .25rem;
    font-size: .875rem;
}

.tao__count {
    font-variant-numeric: tabular-nums;
    /*background: var(--background-color);*/
}

.tao__count--warn {
    color: #b36b00;
    font-weight: 600;
}

.tao__limit {
    margin-top: .25rem;
    font-size: .875rem;
    color: #b00020;
    text-align: center;
}


.tin {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-flow: row;
}

.tin__input {
    width: 70px;
    font-size: 25px;
    text-align: center;
    border-left: none;
    border-right: none;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

.tin__label{

}

.tin__button{
    width: 40px;
    font-size: 25px;
    background-color: var(--button-primary-background);
    transition: 0.05s ease-in-out;
}

.tin__button:hover{
    background-color: var(--button-primary-background-hover);
}

.tin__button:active{
    box-shadow: 0 0 0 #000;
}

    .tin__button.plus {
        border-radius: 0 10px 10px 0;
        border-left: none;
    }
    .tin__button.minus {
        border-radius: 10px 0 0 10px;
        border-right: none;
    }






/* =========================
   TIO – Combo / Floating Input
   ========================= */

.tio {
    width: 100%;
    position: relative;
    display: grid;
    gap: .25rem;
    margin: 10px 0;
}

/* input + caret wrapper */
.tio__wrap {
    position: relative; /* anchor for .tio__list */
    display: inline-flex;
    align-items: center;
    width: 100%;
}

/* text input */
.tio__input {
    flex: 1 1 auto;
    width: 100%;
    padding: 0.55rem .875rem 0.75rem;
    font: inherit;
    background: var(--tio-bg, #fff);
    color: var(--tio-fg, #222);
    box-sizing: border-box;
}

/* when inside wrap, let caret own the right corners */
.tio__wrap .tio__input {
    border-radius: .5rem 0 0 .5rem;
}

/* caret button */
.tio__btn--caret {
    flex: 0 0 auto;
    min-width: 2.5rem;
    height: 100%; /* match input height */
    border: 1px solid #d0d5dd;
    border-left: none;
    border-radius: 0 .5rem .5rem 0;
    background: #f6f6f6;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
}

/* shared border/rounding between TIO and TAO */
.tio__input,
.tao__textarea {
    border: 1px solid #d0d5dd;
    border-radius: .5rem;
}

    .tio__input:focus,
    .tao__textarea:focus {
        border-color: #4b5563;
        outline: 3px solid rgba(255, 199, 44, 0.75);
        outline-offset: 2px;
        box-shadow: none; /* keep it simple + ADA clear */
        /*box-shadow: 0 0 0 2px var(--nku-yellow);*/
    }

/* floating label */
.tio__label {
    position: absolute;
    top: .5rem;
    left: 1rem;
    transition: all .15s ease;
    font-size: 1rem;
    color: var(--tio-label, #666);
    pointer-events: none;
    background: transparent; /* no bg at rest */
    padding: 0;
    z-index: 1;
}


    .tio__label::before {
        content: "";
        position: absolute;
        left: -0.25rem;
        right: -0.25rem;
        top: 50%;
        transform: translateY(-50%);
        height: 100%;
        /*border-radius: .25rem;*/
        background: var(--background-color, #fff);
        /*background: #fff;*/
        opacity: 0; /* hidden by default */
        transition: opacity .15s ease;
        z-index: -1;
    }




/* Float when focused or has value */
.tio__input:focus + .tio__label,
.tio__input.has-value + .tio__label,
.tio__wrap:has(.tio__input:focus) ~ .tio__label,
.tio__wrap:has(.tio__input.has-value) ~ .tio__label {
    top: -0.6rem;
    left: .8rem;
    font-size: .85rem;
    padding: 0 .15rem;
    color: var(--text-color);
}

    /* turn on the background strip when floated */
    .tio__input:focus + .tio__label::before,
    .tio__input.has-value + .tio__label::before,
    .tio__wrap:has(.tio__input:focus) ~ .tio__label::before,
    .tio__wrap:has(.tio__input.has-value) ~ .tio__label::before {
        opacity: 1;
    }

/* meta / counters */
.tio__meta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #666;
    font-size: .75rem;
    margin-left: .25rem;
}

.tio__count {
    font-variant-numeric: tabular-nums;
}

.tio__count--warn {
    color: #b36b00;
    font-weight: 600;
}

.tio__limit {
    margin-top: .25rem;
    font-size: .75rem;
    color: #b00020;
}

/* dropdown list – same width as input+caret */
.tio__list {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    width: 100%; /*  matches .tio__wrap width */
    box-sizing: border-box;
    margin-top: .25rem;
    max-height: 14rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: .6rem;
    padding: .25rem;
    z-index: 30;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.tio__option {
    padding: .35rem .5rem;
    border-radius: .35rem;
    cursor: pointer;
}

    .tio__option.is-active,
    .tio__option:hover {
        background: #eee;
    }











.icon {
    color: #1c1e21;
    flex-shrink: 0;
}

.admin-card {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 18px;
    padding: 16px
}

    .admin-card .content {
        display: flex;
        flex-flow: column;
        align-content: space-between;
        align-items: start;
        justify-content: space-between;
    }

.content .btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f2f4f7;
    border: 1px solid #e6e8eb
}




.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 24px
}

.stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 8px 0 24px
}

.muted {
    color: #6e7681
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f2f4f7;
    border: 1px solid #e6e8eb
}

    .btn:focus {
        outline: 3px solid #2557D6;
        outline-offset: 2px
    }






/*@media (prefers-color-scheme:dark) {
    .tio__label {
        background: #1f1f1f;
        color: #9aa0a6;
    }

    .tio__input {
        background: #1f1f1f;
        color: #e9e9e9;
        border-color: #bb86fc;
    }

        .tio__input:focus {
            border-color: #3700b3;
            box-shadow: 0 0 0 2px rgba(187,134,252,.3);
        }

    .tio__meta {
        color: #9aa0a6;
    }
}*/





/* ===========================
   Admin › Users page styles
   =========================== */

/* Page title keeps your palette */
.page-title {
    margin: 0 0 .5rem;
    color: var(--text-color);
}

/* Filters row reuses your button and input look */
.filters {
    display: flex;
    gap: .75rem;
    align-items: center;
    margin: .25rem 0 1rem;
}

    .filters .spacer {
        flex: 1;
    }

.input, .select {
    width: 100%;
    max-width: 22rem;
    padding: .55rem .65rem;
    border: 1px solid #d0d5dd;
    border-radius: .5rem;
    background: var(--background-color);
    color: var(--text-color);
}

/* Main card matches your .card vibe but wider */
.users-card {
    background: #fff;
    border: 1px solid var(--TileBorderColor);
    border-radius: 12px;
    padding: 12px;
}

/* Scroll wrapper for the data grid */
.table-scroll {
    overflow: auto;
    max-height: 65vh;
    border-top: 1px solid #f0f2f5;
    background: #fff;
}

/* Users table */
table.users {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-color);
    background: #fff;
}

    table.users th,
    table.users td {
        padding: 10px 12px;
        vertical-align: middle;
        border-bottom: 1px solid #eef0f3;
    }

    table.users thead th {
        font-weight: 600;
        color: var(--secondary-color);
        background: #fafafa;
        position: sticky;
        top: 0;
        z-index: 1;
    }

/* Sortable header button */
.th-sort {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 0; /* keep table padding on <th> */
}

    .th-sort .sort {
        opacity: .7;
    }

/* Row states */
tr.selected {
    background: #f6f8fb;
}

.loading, .empty {
    text-align: center;
    color: #6e7681;
}

/* Row actions align with your .btn + link look */
.row-actions {
    white-space: nowrap;
}

    .row-actions .link {
        background: none;
        border: 0;
        color: #1f2937;
        cursor: pointer;
        padding: 0;
    }

        .row-actions .link.danger {
            color: #b91c1c;
        }

    .row-actions .sep {
        color: #c3c7cf;
        margin: 0 6px;
    }

/* Pager fits your button scale + variables */
.pager {
    display: flex;
    gap: .75rem;
    align-items: center;
    padding: 10px;
    color: var(--secondary-color);
}

    .pager .btn {
        border: 1px solid #d0d5dd;
        background: #f8fafc;
        padding: .45rem .8rem;
        border-radius: .5rem;
    }

        .pager .btn:hover {
            background: #f3f4f6;
        }

/* Drawer & modal reuse your overlay look, with rounded panels */
.drawer, .modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.25);
    z-index: 1000;
}


    .drawer .panel, .modal .panel {
        background: #fff;
        border: 1px solid var(--TileBorderColor);
        border-radius: 12px;
        padding: 16px;
        width: 420px;
        max-width: 95vw;
    }

/* Simple form grid in the drawer */
.form {
    display: grid;
    gap: 10px;
    margin: 12px 0;
}

    .form label {
        display: block;
        font-weight: 600;
        margin-bottom: .25rem;
    }

    .form .input {
        width: 100%;
        padding: .55rem .65rem;
        border: 1px solid #d0d5dd;
        border-radius: .5rem;
    }

/* Buttons: use your existing button classes where possible */
.btn-primary,
.buttonPrimary { /* keep your primary look */
    background-color: var(--button-primary-background);
    color: var(--button-primary-text-color);
    border: var(--button-primary-border);
    border-radius: var(--button-radius);
    transition: var(--transition-time);
}

    .btn-primary:hover,
    .buttonPrimary:hover {
        background-color: var(--button-primary-background-hover);
    }

/* Make all .btn share your rounded radius */
.btn {
    border-radius: var(--button-radius);
}



.chip {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 6px;
    border-radius: 999px;
    border: 1px solid #d0d5dd;
    background: #f2f4f7;
    font-size: .85rem;
}

.roles .check {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    margin: .15rem .6rem .15rem 0;
}


/* ===========================
   Cycles Page (conflict-safe)
   =========================== */

.cycles-page {
    padding: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

    .cycles-page .cycles-header {
        display: grid;
        gap: .25rem;
        margin-bottom: 1rem;
    }

        .cycles-page .cycles-header .subtitle {
            color: var(--secondary-color);
        }

    .cycles-page .actions {
        margin-top: .25rem;
    }

    .cycles-page .groups {
        display: grid;
        gap: 2rem;
    }

    .cycles-page .group {
        /* section wrapper */
    }

    .cycles-page .group-title {
        font-size: 1.25rem;
        margin: 0 0 .5rem 0;
        color: var(--text-color);
    }

    .cycles-page .empty {
        color: var(--secondary-color);
        margin: 0;
    }

    /* Card grid */
    .cycles-page .cycles-cards {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    /* Use cycle-card instead of .card to avoid collisions */
    .cycles-page .cycle-card {
        background: #fff;
        border: 1px solid var(--TileBorderColor);
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 1px 2px rgba(0,0,0,.04);
        outline: none;
    }

        .cycles-page .cycle-card:focus-visible {
            box-shadow: 0 0 0 3px #005fcc;
        }

    /* Head area */
    .cycles-page .cycle-head {
        display: grid;
        gap: .25rem;
    }

    .cycles-page .cycle-title-row {
        display: flex;
        align-items: center;
        gap: .5rem;
    }

    .cycles-page .cycle-title {
        font-size: 1rem;
        margin: 0;
        color: var(--text-color);
    }

    .cycles-page .cycle-badge {
        border-radius: 999px;
        padding: .15rem .5rem;
        font-size: .75rem;
        border: 1px solid var(--TileBorderColor);
        background: #f2f4f7;
        color: var(--secondary-color);
    }

    .cycles-page .cycle-badge--accent {
        background: #005fcc;
        border-color: #005fcc;
        color: #fff;
    }

    .cycles-page .cycle-badge--warn {
        background: #fff7e6;
        border-color: #f0b429;
        color: #8a5a00;
    }

    /* Dates + subrange */
    .cycles-page .cycle-dates {
        font-size: .9rem;
        color: #334155;
    }

    .cycles-page .cycle-subrange {
        font-size: .85rem;
        color: #475569;
    }

    /* Notes */
    .cycles-page .cycle-notes {
        margin: .5rem 0;
        color: #374151;
    }

    /* Actions – uses your existing .btn look but scoped spacing */
    .cycles-page .cycle-actions {
        display: flex;
        gap: .5rem;
        flex-wrap: wrap;
    }

    /* Modal (scoped) */
    .cycles-page .cycle-modal-backdrop, modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.5);
        display: grid;
        place-items: center;
        padding: 1rem;
        z-index: 1000;
    }

    .cycles-page .cycle-modal {
        max-width: 720px;
        width: 100%;
        background: #fff;
        border: 1px solid var(--TileBorderColor);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,.2);
    }

    .cycles-page .cycle-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: .75rem 1rem;
        border-bottom: 1px solid var(--TileBorderColor);
    }

    .cycles-page .cycle-form-grid {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: .5rem .75rem;
        padding: 1rem;
    }

        .cycles-page .cycle-form-grid label {
            align-self: center;
        }

    .cycles-page .cycle-modal-actions {
        display: flex;
        gap: .5rem;
        justify-content: flex-end;
        padding: .75rem 1rem 1rem;
    }

    /* Skeleton/placeholder */
    .cycles-page .cycle-skeleton {
        height: 140px;
        border-radius: 12px;
        background: linear-gradient(90deg,#eee 25%,#f5f5f5 37%,#eee 63%);
        background-size: 400% 100%;
        animation: cycle-shimmer 1.2s ease-in-out infinite;
    }




    /*modal*/

    .modal-backdrop {
        width: 100%;
        height: 100%;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.5);
        display: block;
        /*place-items: center;*/
        padding: 1rem;
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-content: center;
        align-items: center;
    }

    .modal-backdrop .modal {
        max-width: 520px;
        width: 100%;
        max-height: 600px;
        margin: auto;
        padding: 2px;
        background: #fff;
        border: 1px solid var(--TileBorderColor);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,.2);
        display: flex;
        flex-flow: column;
        justify-content: flex-start;
        align-content: center;
        align-items: center;
    }

.modal-title {
    color: var(--text-color);
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    margin: auto;
}


    .modal-header {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: .75rem 1rem;
        border-bottom: 1px solid var(--TileBorderColor);
    }
    .modal-header h2 {
        margin: auto;
    }
    .modal-header .btn {
        font-size: 1.55em;
        font-weight: bolder;
    }
 
    .modal form{
        width: 100%;
        box-sizing: border-box;
        padding: 0 1rem 1rem;
    }



    .form-grid {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: .5rem .75rem;
        padding: 1rem;
    }

        .form-grid label {
            align-self: center;
        }

    .modal-actions {
        display: flex;
        gap: .5rem;
        justify-content: flex-end;
        padding: .75rem 1rem 1rem;
    }

    .modal-form{
        /*border: 1px solid #f00;*/
        width: 95%;
        height: auto;
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-content: center;
        align-items: center;
    }
    .modal-form .formGroup {
        width: 95%;
        margin: 20px;
    }

    .modal form{
        width: 75%;
        /*border: 1px solid #0f0;*/
    }











.sessionPage {
    width: 100%;
    background-color: var(--background-color);
}

    .sessionPage .topRow{
        width: 100%;
    }
        .sessionPage .cycleBar {
            width: 100%;
            display: flex;
            flex-flow: row;
            flex-wrap: wrap;
            justify-content: start;
            align-content: center;
            /*border: 1px solid #f00;*/
        }

        .cycleBar div {
            width: 250px;
            margin: 0 10px;
        }

    .sessionPage .sessionToolBar{
        width: 100%;
        display: flex;
        flex-flow: row;
        flex-wrap: wrap;
        justify-content: start;
        align-content: center;
    }

        .sessionToolBar div{
            width: 250px;
        } 
        .sessionToolBar select{
            width: 150px;
        }

.sessionWrapper {
    width: 100%;
    height: 500px;
    border: 1px solid rgba(0,0,150, 0.5);
    border-radius: 10px;
    overflow: hidden;
    overflow-y: auto;
    background-color: var(--background-color);
    margin-top: 10px;
}

.sessionTable thead{
    position: sticky !important;
}
.sessionTable tbody {
    height: 300px !important;
    overflow-y: scroll !important;
}

    .sessionWrapper .sessionTable{
        width: 100%;
    }
.sessionTable th, .sessionTable td {
    padding: 5px 10px;
}

.sessionTable tr {
    border-top: 1px solid rgba(0,0,150, 0.5);
    border-bottom: 1px solid rgba(0,0,150, 0.5);
}
    .sessionTable tr:first-of-type{
        border-top: none;
    }
    .sessionTable tr:last-of-type{
        border-bottom: none;
    }

    .sessionTable td {
        line-height: 15px;
    }




.sessionRow {
    width: 100%;
    height: 75px;
    border-top: 1px solid rgba(0,0,100, 0.2);
    border-bottom: 1px solid rgba(0,0,100, 0.2);
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
    align-items: start;
}

    .sessionRow:first-of-type {
        border-top: none;
    }

.sessionRow:last-of-type {
    border-bottom: none;
}


    .sessionRow.head {
        height: 25px;
        position: sticky;
        top: 0;
        left: 0;
        background-color: inherit;
    }

.sessionCell {
    min-width: 150px;
    height: 100%;
    padding: 0 5px;
    /*border: 1px solid #f00;*/
    /*border: 1px solid #f00;*/
}

    .sessionCell.sessionInfo{
        width: 40%;
        min-width: 350px;
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-content: center;
        align-items: start;
        line-height: 0.99em;
        /*border: 1px solid #f00;*/
    }
        .sessionLabel {
            font-size: 0.99em;
            line-height: 0.99em;
            font-weight: bolder;
            padding: 0;
            margin: 0;
        }
        .sessionCell.sessionButtons{
            display: flex;
            flex-flow: row;
            justify-content: center;
            align-content: center;
            align-items: center;
        }



        .sessionButtons button{
            margin: 0 10px;
        }

    .sessionCell.sessionType, .sessionCell.sessionDateTime, .sessionCell.sessionButtons{
        width: 20%;
        min-width: 150px;
    }

.sessionDateTime {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-content: start;
    align-items: start;
    line-height: 1em;
}

    .sessionDateTime p {
        margin: 0;
    }
    .sessionDate{
        font-weight: bold;
    }
    .sessionTime{
        font-weight: 200;
    }

    .sessionCell.sessionType{
        display: flex;
        justify-content: center;
        align-content: center;
        align-items: center;
    }




    /* Session Picker */

    .session-picker{
        width: 100%;
    }

.session-picker fieldset {
    width: 100%;
    border: 0;
    padding: 0;
    margin: 0;
}


.session-listbox {
    max-height: 24rem; /* ~384px, adjust as needed */
    overflow-y: auto;
    padding-right: 0.25rem;
}

    /* optional scrollbar style for WebKit browsers */
    .session-listbox::-webkit-scrollbar {
        width: 0.6rem;
    }

    .session-listbox::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 0.5rem;
    }

        .session-listbox::-webkit-scrollbar-thumb:hover {
            background-color: rgba(0,0,0,0.4);
        }


.session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.session-card {
    width: 100%;
    text-align: left;
    border-radius: 0.75rem;
    border: 2px solid #ccc;
    padding: 0.75rem 1rem;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

    .session-card:hover,
    .session-card:focus-visible {
        outline: none;
        border-color: #0056b3; /* your primary */
        box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.3);
        transform: translateY(-1px);
    }

.session-card-selected {
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.5);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.session-check {
    font-size: 1.1rem;
}

.session-meta {
    font-size: 0.9rem;
}

.meta-label {
    font-weight: 600;
    margin-right: 0.25rem;
}

.session-summary {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Screen-reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



.students-section .student-list, .faculty-section .faculty-list {
    min-height: 32rem;
    max-height: 48rem; /* was 32rem */
    overflow-y: auto;
    padding-right: .25rem;
    scrollbar-gutter: stable both-edges;
}

.students-section .student-card:focus-within, .faculty-section .faculty-card:focus-within {
    outline: 2px solid #000; /* high-contrast focus outline for ADA */
    outline-offset: .15rem;
}

.students-section .btn.btn-sm,
.faculty-section .btn.btn-sm {
    min-height: 2.25rem;
    padding: 0.35rem 0.8rem;
}

.student-details, .faculty-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1rem 1.5rem;
}

    /* Full-width rows */
    .student-details .student-email,
    .student-details .student-dept,
    .faculty-details .faculty-email,
    .faculty-details .faculty-dept {
        grid-column: 1 / -1; /* span both columns */
    }

/* The others will naturally sit: 
   first | last
   type  | college
   because of the markup order */

/* Small screens: stack everything */
@media (max-width: 768px) {
    .student-details {
        grid-template-columns: 1fr;
    }

        .student-details .student-email,
        .student-details .student-first,
        .student-details .student-last,
        .student-details .student-type,
        .student-details .student-college,
        .student-details .student-dept {
            grid-column: 1 / -1;
        }
}

@media (prefers-reduced-motion: no-preference) {
    .student-details {
        transition: background-color 0.2s ease;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}




/* =========================
   Person Sections (Students + Faculty)
   ========================= */

/* Wrapper for the entire people list section */
.person-section {
    border: none;
    padding: 0;
    margin: 0;
}

    /* Legend or section title */
    .person-section > legend {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    /* Top control bar (e.g., Add button + count) */
    .person-section .d-flex {
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
    }

    /* Scrollable list of cards */
    .person-section .person-list {
        padding-right: 0.25rem;
        scrollbar-gutter: stable both-edges;
    }

/* Each person entry as a card */
.person-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.85rem 0.9rem 1rem;
    margin-bottom: 0.75rem;
    background: #fafafa;
}

    /* Header row in card */
    .person-card header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

        /* Name or title inside the header */
        .person-card header h5 {
            margin: 0;
            font-size: 1rem;
            font-weight: 600;
        }

    /* Muted subtext (e.g., role or note) */
    .person-card .muted {
        color: #6b7280;
        font-size: 0.85rem;
    }

    /* Focus outline for accessibility */
    .person-card:focus-within {
        outline: 3px solid #005fcc;
        outline-offset: 0.15rem;
    }

/* Details grid inside each card */
.person-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1rem 1.5rem;
}

    /* Full-width fields (like email, department, etc.) */
    .person-details .person-email,
    .person-details .person-dept {
        grid-column: 1 / -1;
    }

    /* Inputs and selects full width */
    .person-details input,
    .person-details select,
    .person-details textarea {
        width: 100%;
        box-sizing: border-box;
    }

/* Buttons (Add / Remove) */
.person-section .btn.btn-sm {
    min-height: 2.25rem;
    padding: 0.35rem 0.8rem;
}

/* Stack everything on small screens */
@media (max-width: 768px) {
    .person-details {
        grid-template-columns: 1fr;
    }

        .person-details > .formGroup {
            grid-column: 1 / -1;
        }
}

.modal-header {
    position: relative; /* allow absolute children */
    display: flex;
    align-items: center;
    justify-content: center; /* center the title */
    padding: .75rem 2.75rem; /* extra right padding for the X */
    border-bottom: 1px solid var(--TileBorderColor);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.4;
}

/* Close button in the header */
.modal-header .btn {
    position: absolute;
    top: .5rem;
    right: .5rem;
    min-width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

/* Modal form: reduce spacing so fields aren't spread out */
.modal-form {
    width: 95%;
    display: grid;               /* consistent vertical rhythm */
    grid-auto-flow: row;
    gap: .75rem;                 /* tighter vertical gap */
    padding: 1rem;               /* add inner padding instead of large margins per field */
}

.modal-form .formGroup {
    width: 100%;                 /* full width inside the modal form */
    margin: 0;                   /* remove large outer margins */
}

.modal-form .formGroup input,
.modal-form .formGroup textarea,
.modal-form .formGroup select,
.modal-form .formGroup .tio__input {
    width: 100%;
    box-sizing: border-box;
}

/* Actions row: keep compact alignment */
.modal-actions {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    padding: .5rem 1rem 1rem;
}