:root {
    /* active state */
    /*--red-50: #ffebee;
    --pink-50: #fce4ec;
    --purple-50: #f3e5f5;
    --deep-purple-50: #ede7f6;
    --indigo-50: #e8eaf6;
    --blue-50: #e3f2fd;
    --light-blue-50: #e1f5fe;
    --cyan-50: #e0f7fa;
    --teal-50: #e0f2f1;
    --green-50: #e8f5e9;
    --light-green-50: #f1f8e9;
    --lime-50: #f9fbe7;
    --yellow-50: #fffde7;
    --amber-50: #fff8e1;
    --orange-50: #fff3e0;
    --deep-orange-50: #fbe9e7;
    --brown-50: #efebe9;
    --gray-50: #fafafa;
    --blue-gray-50: #eceff1;

    /* normal */
    /*--red-100: #ffcdd2;
    --pink-100: #f8bbd0;
    --purple-100: #e1bee7;
    --deep-purple-100: #d1c4e9;
    --indigo-100: #c5cae9;
    --blue-100: #bbdefb;
    --light-blue-100: #b3e5fc;
    --cyan-100: #b2ebf2;
    --teal-100: #b2dfdb;
    --green-100: #c8e6c9;
    --light-green-100: #dcedc8;
    --lime-100: #f0f4c3;
    --yellow-100: #fff9c4;
    --amber-100: #ffecb3;
    --orange-100: #ffe0b2;
    --deep-orange-100: #ffccbc;
    --brown-100: #d7ccc8;
    --gray-100: #f5f5f5;
    --blue-gray-100: #cfd8dc;


    /* hover state */
    /*--red-200: #ef9a9a;
    --pink-200: #f48fb1;
    --purple-200: #ce93d8;
    --deep-purple-200: #b39ddb;
    --indigo-200: #9fa8da;
    --blue-200: #90caf9;
    --light-blue-200: #81d4fa;
    --cyan-200: #80deea;
    --teal-200: #80cbc4;
    --green-200: #a5d6a7;
    --light-green-200: #c5e1a5;
    --lime-200: #e6ee9c;
    --yellow-200: #fff59d;
    --amber-200: #ffe082;
    --orange-200: #ffcc80;
    --deep-orange-200: #ffab91;
    --brown-200: #bcaaa4;
    --gray-200: #eeeeee;
    --blue-gray-200: #b0bec5;


    /* text color */
    /*--red-900: #b71c1c;
    --pink-900: #880e4f;
    --purple-900: #4a148c;
    --deep-purple-900: #311b92;
    --indigo-900: #1a237e;
    --blue-900: #0d47a1;
    --light-blue-900: #01579b;
    --cyan-900: #006064;
    --teal-900: #004d40;
    --green-900: #1b5e20;
    --light-green-900: #33691e;
    --lime-900: #827717;
    --yellow-900: #f57f17;
    --amber-900: #ff6f00;
    --orange-900: #e65100;
    --deep-orange-900: #bf360c;
    --brown-900: #3e2723;
    --gray-900: #212121;
    --blue-gray-900: #263238;
*/

    --blue-gray-50: #eceff1;
    --blue-gray-100: #cfd8dc;
    --blue-gray-200: #b0bec5;
    --blue-gray-900: #263238;

    --yellow-50: #fffde7;
    --yellow-100: #fff9c4;
    --yellow-200: #fff59d;
    --yellow-900: #f57f17;

    --indigo-50: #e8eaf6;
    --indigo-100: #c5cae9;
    --indigo-200: #9fa8da;
    --indigo-900: #1a237e;

    --light-blue-50: #e1f5fe;
    --light-blue-100: #b3e5fc;
    --light-blue-200: #81d4fa;
    --light-blue-900: #01579b;

    --orange-50: #fff3e0;
    --orange-100: #ffe0b2;
    --orange-200: #ffcc80;
    --orange-900: #e65100;

    --deep-orange-50:  #fbe9e7;
    --deep-orange-100: #ffccbc;
    --deep-orange-200: #ffab91;
    --deep-orange-900: #bf360c;

    --green-50: #e8f5e9;
    --green-100: #c8e6c9;
    --green-200: #a5d6a7;
    --green-900: #1b5e20;

    --purple-50: #f3e5f5;
    --purple-100: #e1bee7;
    --purple-200: #ce93d8;
    --purple-900: #4a148c;

    --blue-50: #e3f2fd;
    --blue-100: #bbdefb;
    --blue-200: #90caf9;
    --blue-900: #0d47a1;
    
    
    --blue-gray-900

    --red-50: #ffebee;
    --red-100: #ffcdd2;
    --red-200: #ef9a9a;
    --red-900: #b71c1c;

    --primary: #1de9b6;  /* light blue 500 */
    --secondary: #607d8b;
    --tertiary: #e0f7fa;
    --destructive: #d32f2f;

    --primary-text: #00363d;
    --secondary-text: #ffffff;
    --tertiary-text: #006064;
    --destructive-text: #ffffff;

    --disabled: #f0f0f0;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 20px;
    font-family: Calibri;
    outline: none;
}

html, body {
    height: 100vh;
}

body {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr minmax(auto, 1200px) 1fr;
    grid-template-areas: 
        "header header header" 
        ". content .";
    padding: 20px;
}


/* --- base layout --- */
header {
    grid-area: header;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #eeeeee;
    /*border-bottom: 1px solid #ddd;*/
    border-radius: 24px;
    display: flex;
    justify-content: center;
}

#content {
    grid-area: content;
    /* individual layouts set in individual stylesheets */
}

nav {
    display: flex;
    gap: 1rem;
    padding: 10px;
}

input, select, textarea {
    border: 2px solid #b1b1b1;
    background-color: #f4f5fc;
    border-radius: 4px;
    padding: 8px;
    
}

input:focus, select:focus, textarea:focus {
    border-color: #7f7f7f;
}

input:disabled, select:disabled, textarea:disabled {
    background-color: var(--disabled);
}

button, a:link, label {
   
}

.red {
    color: var(--red-900);
}


/* --- mobile hamburger button --- */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    padding: 1rem;
}

/* --- mobile menu panel (hidden by default) --- */
nav.mobile-menu {
    position: fixed;
    top: 0;
    left: -260px; /* hide off-screen */
    width: 260px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.2rem;
    transition: left 0.3s ease;
    pointer-events: auto;
}

nav.mobile-menu.open {
    left: 0;
}

.tooltip { position: relative; cursor: help; }
.tooltip::after {
    content: attr(data-title); /* pull text from the attribute */
    position: relative;
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 4px;
    display: none; /* hide by default */
}
.tooltip:hover::after { display: block; } /* show on hover */



.card-container {
    display: flex;
    flex-flow: row wrap;     /* flex-direction and flex-wrap */
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
    gap: 24px;
}

.card {
    word-wrap: break-word;
    padding: 24px;
    text-align: center;
    background-color: #f5f6f7;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 320px;
    max-width: 320px;
    min-height: 400px;
}

.card-header {
    background-color: #e7e9ec;
    border-radius: 8px;
    padding: 24px 10px;
}

.card-body {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px 10px;
    flex: 1;
}


p {
    line-height: 1.1em;
    margin-bottom: 20px;
}

p:last-of-type {
    margin-bottom: 0px;
}


.aside-button {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
}

.aside-button-image {
    background-color: #fff;
    border-radius: 8px;
    padding: 0.3rem;
}


.material-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 64px;
    padding: 8px 16px 8px 12px;
    border-radius: 16px;
}

.font-charcoal {
    color: #36454f;
}

.font-black {
    color: #000;
}

.primary-button {
    background-color: var(--primary);
    border: 2px solid var(--primary);
}

.cancel-button {
    background-color: var(--destructive);
    border: 2px solid var(--destructive);
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.button-row {
    display: flex;
    margin-top: 20px;
    gap: 1rem;
}

.button-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
   
}

/* menu items */
.menu-item {
    border: none;
    background-color: transparent;
    border-radius: 8px;
    padding: 12px;
    color: var(--blue-gray-900);
    text-align: left;
    transition: background-color 60ms ease;
}

.menu-item:hover {
    background-color: #dedede;
}

.menu-item:link {
    text-decoration: none;
}

/* end menu items */



/* base button */
.material-button {
    position: relative;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: system-ui, sans-serif;
    overflow: hidden;
    transition: filter 120ms ease;
}

/* state layer */
.material-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity 120ms ease;
    pointer-events: none;
}

/* hover */
.material-button:hover::after {
    opacity: 0.08;
}

/* focus-visible */
.material-button:focus-visible::after {
    opacity: 0.12;
}

.material-button:focus-visible {
    outline: 2px solid rgba(255,255,255,0.9);
    outline-offset: 2px;
}

/* pressed */
.material-button:active::after {
    opacity: 0.16;
}

/* disabled */
.material-button:disabled {
    opacity: 0.38;
    cursor: default;
}

/* ——— button types ——— */

/* primary */
.material-button.primary {
    background: var(--primary);
    color: var(--primary-text);
}

/* secondary */
.material-button.secondary {
    background: #607D8B;
    color: white;
}

/* tertiary */
.material-button.tertiary {
    background: #e0f7fa;
    color: #006064;
}

/* destructive */
.material-button.destructive {
    background: #d32f2f;
    color: white;
}






/* screens less than 900px */
@media screen and (max-width: 900px) {



    body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "header"
            "content";
    }

    header {
        position: sticky;   /* required */
        top: 0;             /* required */
        z-index: 1000;      /* required */
        background-color: #fff;
        border-radius: 0px;
        display: flex;
        justify-content: flex-start;
    }

    nav {
        display: none; /* hide desktop nav */
    }

    .button-row {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    #content {
        padding: 20px 0px;
    }

    .menu-toggle {
        display: block;
        background-color: #fff;
    }

    .card {
        width: 100%;
        max-width: 80%;
    }

}




