:root {
    /* --medium-grey: rgb(153, 153, 153); */
    --label-grey: rgb(60,60,60);
    --dark-grey: rgb(102, 102, 102);
    --medium-grey: rgb(124, 124, 124);
    --light-grey: rgb(204, 204, 204);
    --background-grey: rgb(247, 247, 247);

    --brand-blue: rgb(0, 107, 183);
    --light-blue: rgb(17, 123, 200); 
    --dark-blue: rgb(8, 51, 128);
    --blue-gradient: linear-gradient(var(--light-blue), var(--brand-blue), var(--dark-blue));
    --light-blue-gradient: linear-gradient(rgb(138, 182, 214), rgb(99, 158, 200));
    --light-blue-gradient-border: solid rgb(99, 158, 200) 1px;
    
    --light-yellow: rgb(249, 253, 177);
    --action-yellow: rgb(255, 227, 91);

    --error-background: #FFC1C3;
    --error-border: 1px solid red;

    --notification-background: #F0F8FF;
    --notification-border: 1px solid #0a2351;

    --table-header-gradient: linear-gradient(#999, #545454);

    /* Product Table grid-column widths */
    --checkbox-row: 32px;
    --product-descr-row: 1fr;
    --publisher-isbn-row: 168px;
    --grade-level-row: 56px;
    --copyright-year-row: 56px;
    --product-type-row: 124px;
    --net-price-row: 96px;
    --contract-price-row: 96px;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

section.border {
    border-radius: 12px;
    padding: calc(max(16px, 1.5vw));
}

p,
span,
label,
li,
a {
    font-size: 1rem;
    letter-spacing: 0.02rem;
    color: var(--dark-grey);
    margin: 0;
}

a {
    color: var(--brand-blue);
    font-size: 1rem;
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1rem;
    min-height: 24px;
}

input[readonly] {
    pointer-events: none;
    background-color: rgba(239, 239, 239, 0.3);
    color: rgb(84, 84, 84);
    border-color: rgba(118, 118, 118, 0.3);
}

fieldset {
    margin: 0;
    border: 0;
    padding: 0;
}

label {
    font-weight: 700;
    letter-spacing: 0.04rem;
    white-space: nowrap;
    font-size: 1.1rem;
    line-height: 1.6rem;
}

h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 0.13rem;
    font-weight: 1000;
    color: black;
}

h2 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.04rem;
}

h4, h5 {
    font-weight: 600;
    letter-spacing: 0.02em;
}


hr {
    width: 100%;
    min-height: 1px;
    scrollbar-color: black transparent;
}

em {
    font-style: normal;
    font-weight: 600;
}

small {
    font-size: 0.7rem;
}

p:has(small) {
    line-height: 0.85rem;
}

/* SLIDESHOW */
.slide-show {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 4s ease;

    &.active {
        opacity: 1;
    }
}

/* CARD */
.card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 207px;
    background-image: linear-gradient(#fff, #dfdfdf);

    
    &.blue-card {
        background-image: var(--blue-gradient);

        h3 {
            color: var(--light-yellow);
        }

        p {
            color: #fff;
        }
    }

    ul {
        padding-inline-start: 20px;

        li {
            position: relative;
        }

        li::before {
            content: '\02C3';
            position: absolute;
            top: 0;
            left: -15px;
            color: var(--brand-blue);
        }
    }

}


/* HAMBURGER MENU */
.hamburger-menu {
    position: relative;

    .hamburger {
        display: none;
        background-image: url('/static/images/hamburger-menu.svg');
        background-size: cover;
        background-repeat: no-repeat;
        background-color: transparent;
 
        &:has(> img) {
            padding: 4px;
            width: 36px;
            height: 36px;
        }   
    }

    @media(max-width: 768px) {
        .hamburger {
            display: block;
        }

        .menu {
            display: none;

            &.active {
                display: block;
                position: absolute;
                top: 100%;
                right: 0;
            }
        }
    }
}

/* SIDE BAR */
.page-content:has(.sidebar) {
    display: grid;
    grid-template-columns: minmax(auto, 240px) minmax(440px, auto);
    gap: 0px 20px;
    

    .sidebar {
        grid-row: 1 / span 3;
    
        &:has(.hamburger) {
            .hamburger {
                background-color: #127aca;
                background-image: linear-gradient(rgb(151, 214, 246), rgb(34, 100, 213));
                padding: 4px;
        
                img {
                    width: 100%;
                    aspect-ratio: 1 / 1;
                }
            }
        
            .menu {
                background-image: var(--light-blue-gradient);
                border-radius: 10px;
                border: var(--light-blue-gradient-border);
                min-height: 55vh;
        
                a {
                    --outline-color: black;
                    padding: 4px 12px;
                    color: #fff;
                    /* font-family: Verdana; */
                    line-height: 1.25rem;
                    font-weight: 800;
                    letter-spacing: 0.07rem;
                    text-shadow: 
                        var(--outline-color) 0px 0px 1px,
                        var(--outline-color) 0px 0px 1px,
                        var(--outline-color) 0px 0px 1px,
                        var(--outline-color) 0px 0px 1px;
                        
                    -webkit-font-smoothing: antialiased;
        
                    &:hover {
                        /* color: var(--light-grey); */
                        background-color: rgba(0,0,0,0.1);
                    }
        
                    /* &:first-of-type {
                        background-color: rgb(72, 131, 173);
                    } */
        
                    &.selected {
                        background-color: rgb(72, 131, 173);
                    }
                }
            }
        }
    }

    .content {
        grid-column: 2;
    }

    

    @media screen and (max-width: 768px) {
        &:has(.hamburger) {
            grid-template-columns: 1fr min-content;

            .sidebar {
                grid-row: 1;
                grid-column: 2;
        
                .menu.active {
                    display: flex;
                    min-width: 196px;
                }
            }

            .content {
                grid-column: 1 / -1;
            }

            .breadcrumbs {
                grid-row: 1;
                grid-column: 1;
                align-self: end;
            }
        }
    }
}

/* LIST */
ul {
    list-style: none;
    padding-inline-start: 24px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

ul.disc {
    list-style: circle;
}

li {
    color: var(--dark-grey);
    line-height: 1.35rem;
}

.list-header {
    display: block;
    transform: translateX(-15px);
    color: var(--dark-grey);
}


/* BUTTON */

a,
button,
input {
    text-shadow:
        var(--text-shadow-color) 0px 0px 1px,
        var(--text-shadow-color) 0px 0px 1px,
        var(--text-shadow-color) 0px 0px 1px,
        var(--text-shadow-color) 0px 0px 1px,
        var(--text-shadow-color) 0px 0px 1px;
}

button,
.button,
input[type="submit"],
.blue-button,
.yellow-button {
    border-radius: 6px;
    padding: 4px 12px;
    font-family: inherit;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.04rem;
    border: 1px solid var(--dark-grey);

    &.white-gradient {
        background-image: linear-gradient(#eaeaea, #b7b7b7);
    }

    &:is(a) {
        display: inline-block;
        line-height: 1rem;
    }
}

.blue-button {
    background-image: var(--blue-gradient);
    color: #fff;
}
.yellow-button  {
    background-image: linear-gradient(var(--light-yellow), var(--action-yellow));
    color: var(--brand-blue);
}

.yellow-text {
    color: var(--light-yellow);
}
.white-button {
    color: var(--brand-blue);
    background-color: buttonface;
}


/* INPUT */
input.invalid {
    border-color: red;
}

/* SELECT */
select.invalid {
    border-color: red;
}

/* DIALOG */
dialog {
    border-radius: 6px;

    &::backdrop {
        background: rgba(0,0,0,0.55);
    }
}
