@font-face {
    font-family: 'Figtree';
    src: url('../assets/fonts/Figtree-Regular.ttf') format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Figtree';
    src: url('../assets/fonts/Figtree-Italic.ttf') format("truetype");
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Figtree';
    src: url('../assets/fonts/Figtree-Medium.ttf') format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Figtree';
    src: url('../assets/fonts/Figtree-SemiBold.ttf') format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Figtree';
    src: url('../assets/fonts/Figtree-ExtraBold.ttf') format("truetype");
    font-weight: 900;
    font-style: normal;
}

:root {
    --ft-pink: #D7006D;
    --ft-welcome: #0075C3;
    --ft-deep-blue: #003763;
    --ft-blue: #00ADEF;
    --ft-light-blue-grey: #E9EEF2;
    --ft-white: #F9FAFB;
    --foundation: #141D3A;
    --legacy: #013A6F;
    --welcome: #0075C3;
    --vivid: #4EADE1;
    --gold: #EBBD5F;
    --charcoal: #2F2F2F;
    --feather: #F4F4F4;
    --sky: #DCEFF9;
    --white: #ffffff;
    --lil-red: #E62E1F;
    --gutter-margin: 0px;
    --gutter-padding: 2rem;
    --button-corners: 24px;
    --section-padding: 6rem;
}


@media (max-width: 1024px) {
    :root {
        --section-padding: 4rem;
    }
}

html, body {
    font-family: 'Figtree', Helvetica, Arial, sans-serif;
    color: var(--charcoal);
    font-size: 16px;
    font-weight: 300;
}

body {
    font-size: 1.25rem;
}

h1 {
    font-weight: 900;
    font-size: 2.25rem;
    line-height: 3rem;
}

h2, h3, h4, h5, h6 {
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
    line-height: 1.75rem;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.875rem;
}

h4{
    font-size: 1.375rem;
    line-height: 1.375rem;
    color: var(--welcome);
}

p ~ h3, ul ~ h3, p ~ h4 {
    margin-top: 2rem;
}

@media(min-width: 768px) {
    h1 {
        font-size: 3rem;
        line-height: 3.75rem;
    }

    .video-header h1 {
        font-size: 3.75rem;
        line-height: 4.25rem;
    }

    h2 {
        font-size: 2.5rem;
        line-height: 2.75rem;
    }

    h3 {
        font-size: 1.625rem;
    }

    h4 {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }
}

h3 ~ p {
    padding-top: 0.75rem;
}

h4 ~ p {
    padding-top: 0.5rem;
}

p ~ p {
    padding-top: 1rem;
}

address {
    line-height: 1.625rem;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden;
    white-space: nowrap;
    clip: rect(1px 1px 1px 1px);
}

.section-padding {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.section-padding-top {
    padding-top: var(--section-padding);
}

.section-padding-bottom {
    padding-bottom: var(--section-padding);
}

@media (max-width: 1024px) {
    body {
        font-size: 1rem;
    }
}

/* List */

ul:not(.list-none):not(.menu) li:not(:first-child) {
    padding-top: 0.5rem;
}

ul:not(.list-none) {
    padding-left: 2rem;
    padding-top: 1rem;
    list-style-type: disc;
}

ul.welcome-marker li::marker {
    color: var(--welcome);
}

/* Buttons */
a:active {
    background-color: unset;
    background-image: none;
    color: unset;
}

.btn {
    background-image: none;
} 
  
.btn:not(.btn-square) {
    font-size: 1.0rem;
    font-weight: 500;
    border-radius: var(--button-corners);
    border: none;
    padding: 12px 30px;
    box-shadow: none;
    transition: .3s ease-in-out;
} 
  
.btn.btn-primary:not(.btn-link-arrow) {
    background-color: var(--foundation);
    color: var(--ft-white);
}
   
  
 .btn.btn-primary:not(.disabled):not(.btn-link-arrow):hover {
    background-color: var(--vivid);
} 
 
.btn.btn-secondary:not(.tab):not(.btn-link-arrow) {
    background-color: var(--welcome);
    color: var(--white);
} 
 
.btn.btn-primary:disabled, .btn.btn-secondary:disabled {
    filter: brightness(85%);
}

.btn.btn-secondary:not(.disabled):not(.btn-link-arrow):not(.tab):hover {
    background-color: var(--vivid);
}

.btn.btn-tertiary:not(.btn-link-arrow) {
    background-color: var(--white);
    color: var(--foundation);
    border: 1px solid var(--foundation);
}

.btn.btn-tertiary:not(.btn-link-arrow):hover {
    background-color: var(--welcome);
    color: var(--white);
    border: 1px solid var(--welcome);
}

.btn.btn-tertiary:not(.btn-link-arrow) span {
    transition: .3s ease-in-out;
}

.btn.btn-tertiary:not(.btn-link-arrow):hover span {
    fill: var(--white);
}

.btn.btn-link-arrow {
    padding: 0;
    color: var(--foundation);
    margin: 0.75rem 0 0 0;
    font-weight: 700;
    min-height: 1rem;
    height: 1.75rem;
}

@media(min-width: 768px) {
    .btn.btn-link-arrow {
        font-size: 1.25rem;
    }

    .btn:not(.btn-square) {
        font-size: 1.25rem;
    }
}

.btn-link-arrow.btn:hover {
    color: var(--welcome);
    text-decoration: underline;
}

.btn-link-arrow.btn-tertiary.btn:hover {
    color: var(--vivid);
    text-decoration: underline;
}

.btn-link-arrow.btn-tertiary.btn {
    color: var(--white);
}

.btn-link-arrow.btn-tertiary svg path {
    color: var(--vivid);
}

.btn-link-arrow svg path {
    color: var(--welcome);
}

.btn-link-arrow svg {
    transition: .5s ease-in-out;
    margin-left: 3px;
}

.btn-link-arrow.btn:hover svg {
    transform: translateX(6px);
}

/* Hyperlinks */
.external-link{
    color: var(--welcome);
}

/* Manager Card Grid Styling */
.manager-grid-container {
    max-width: 79rem;
    margin-inline: auto;
    container-type: inline-size;
}

.manager-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(123px, 1fr));

    @container (width >= calc(123px * 2 + 1rem)) {
        .item {
            grid-column: span 2;
        }
    }

    @container (calc(123px * 4 + 3rem) < width < calc(123px * 6 + 5rem) ) {
        .item:last-child:nth-child(odd) {
            grid-column: 2 / span 2;
        }
    }

    @container (calc(123px * 6 + 5rem) < width < calc(123px * 8 + 7rem)) {
        .item:nth-child(3n + 4):last-child {
            grid-column: 3 / 5;
        }

        &:has(:nth-child(3n + 5):last-child) > :nth-last-child(2) {
            grid-column: 2 / 4;
        }
    }

    @container (calc(123px * 8 + 7rem) < width < calc(123px * 10 + 9rem)) {
        .item:nth-child(4n + 5):last-child {
            grid-column: 4 / 6;
        }

        &:has(:nth-child(4n + 6):last-child) > :nth-last-child(2) {
            grid-column: 3 / 5;
        }

        &:has(:nth-child(4n + 7):last-child) > :nth-last-child(3) {
            grid-column: 2 / 4;
        }
    }
}