:root {
    --blue: #1277B5;
    --sky: #55cdff;
    --off-white: #f4f4f4;
    --heading: "Open Sans Condensed", Arial, sans-serif;
    --copy: "Avenir LT W01_45 Book1475508", Arial, sans-serif;
    --copy-bold: "Avenir LT W01_95 Black1475556", sans-serif;
}

@keyframes delay {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

body.preloading .saf-fields-container {
    background-image: url('preloader.gif');
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto;
}

body.preloading .saf-fields {
    opacity: 0;
}

body:not(.preloading) .saf-fields {
    opacity: 1;
    transition: opacity 250ms linear 0s;
}

.noshow {
    display: none;
}

.results-desktop {
    display: none;
}

#ffold-index .saf-results {
    display: none;
}

#ffold-index.active .saf-results {
    display: block;
}

.saf-fields-container,
.saf-results-container {
    background-color: #F4F4F4;
    margin-left: 50%;
    padding: 2rem 0;
    transform: translateX(-50%);
    width: 100vw;
}

.saf-results-container {
    background-color: white;
}

.page-width {
    margin-left: auto;
    margin-right: auto;
    max-width: 80rem;
    width: calc( 100% - 2rem );
}

.ffold-index .searchandfilter h4 {
    padding: 0 0 0.25rem 0;
    text-transform: uppercase;
}

.saf-fields > form > ul {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: 1fr;
}

.saf-fields .searchandfilter select.sf-input-select,
.saf-fields .searchandfilter .chosen-container {
    appearance: none;
    background-color: transparent;
    border: 0;
    display: block;
    padding: 0;
}

.saf-fields .chosen-container-multi .chosen-choices li.search-field input[type=text] {
    width: 100% !important;
}

#ffold-index .saf-fields .chosen-container-multi .chosen-choices {
    background: white;
    border: 1px solid #C8C8C8;
    border-radius: 3px;
    padding: 0.5rem !important;
}

.saf-fields .chosen-container-multi .chosen-choices li.search-choice {
    background: var(--off-white);
    border: 0;
    border-radius: 2px;
    box-shadow: none;
    display: inline-block;
    margin: 0 0 3px 0;
    padding: 0.5rem;
    width: 100%;
}

.saf-fields .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
    right: 0.5rem;
    top: 55%;
    transform: translateY(-50%);
}

.chosen-container-active .chosen-choices {
    box-shadow: none;
}

.chosen-container .chosen-drop {
    max-height: 0;
    position: static;
    transition: max-height 1s ease-in-out 0s;
}

.chosen-container.chosen-container-active .chosen-drop {
    max-height: 9999px;
}

.chosen-container-multi .chosen-choices .search-choice ~ li.search-field {
    border: 1px dashed var(--off-white);
    border-radius: 3px;
    height: auto;
    position: relative;
}

.chosen-container-multi .chosen-choices .search-choice ~ li.search-field:after {
    content: '+';
    font: normal 1rem var(--copy-bold);
    opacity: 0.25;
    right: 0.5rem;
    position: absolute;
    top: 0.25rem;
}

.saf-fields .chosen-container .chosen-results li.result-selected.sf-level-0.sf-option-active {
    display: none;
}

.ffold-buttons {
    align-items: center;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: 1fr;
}

.ffold-button {
    background-color: var(--blue);
    border-radius: 3px;
    color: white;
    cursor: pointer;
    display: table;
    font-family: var(--heading);
    padding: 1rem 2rem;
    text-align: center;
    transition: all 250ms linear 0s;
}

.ffold-button:hover {
    background-color: var(--sky);
    color: #333;
}

.ffold-button.download-results {
    background-color: #333;
}

.ffold-button.download-results:hover {
    background-color: var(--blue);
    color: white;
}

.ffold-buttons .reset {
    color: var(--blue);
    font-family: var(--heading);
}

.ffold-buttons .reset:hover {
    color: #333;
}

.chosen-container .chosen-drop {
    border: 0;
    box-shadow: none;
}

.saf-fields .chosen-container .chosen-results {
    position: relative;
}

.saf-fields .chosen-container .chosen-results li {
    color: #333;
    display: block;
    margin: 0;
    padding: 0.5rem;
    width: 100%;
}

.saf-fields .chosen-container .chosen-results li.highlighted {
    background: var(--sky);
    color: white;
}

.saf-fields .searchandfilter h4 {
    padding: 0 0 0.25rem 0;
    text-transform: uppercase;
}

#ffold-index:not(.active) .download-results,
#ffold-index:not(.active) .reset {
    height: 0;
    padding: 0;
    visibility: hidden;
}

.saf-results {
    margin: 2rem auto;
}

.saf-results > table th:not(.noshow),
.saf-results > table td:not(.noshow) {
    vertical-align: bottom;
    width: 14.28%;
}

.saf-results > table td:not(.noshow) {
    vertical-align: top;
}

.saf-results > table th.double,
.saf-results > table td.double {
    width: 28.56%;
}

.saf-results tbody tr:not(:last-of-type) {
    border-bottom: 1px solid #CCC;
}

.saf-results a {
    color: var(--blue);
    font-family: var(--copy-bold);
    text-decoration: underline;
}

.saf-results tbody td {
    overflow-wrap: break-word;
}

.saf-results .limit-height {
    max-height: 10rem;
    overflow: auto;    
}

.results-count {
    color: #666;
    text-align: center;
}

#ffold-index:not(.active) .results-count {
    display: none;
}

.results-mobile ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.results-mobile li:not(:last-of-type) {
    border-bottom: 1px solid #CCC;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.results-mobile .name {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

#ffold-index.active .content-top,
#ffold-index.active .content-bottom {
    display: none;
}

#ffold-index .content-top h1 {
    font-size: 1.5rem;
}

#ffold-index .content-top {
    padding-bottom: 2rem;
    text-align: center;
}

#ffold-index .content-bottom {
    margin-top: 2rem;
}

#ffold-index .content-bottom h2 {
    font-family: var(--copy-bold);
    font-size: 1.125rem;
    margin-bottom: 0;
    text-transform: uppercase;
}

#ffold-index .accc-page-header,
.ffold-single .accc-page-header {
    margin-bottom: 2rem;
    margin-left: 50%;
    margin-top: -60px;
    transform: translateX(-50%);
    width: 100vw;
}

#ffold-index.active .accc-page-header {
    margin-bottom: 0;
}

.ffold-back {
    opacity: 0;
}

.ffold-back {
    animation: delay 1s linear 1s 1 normal forwards;
    background: white url(arrow.svg) 1rem center no-repeat;
    border-radius: 3px;
    color: black;
    cursor: pointer;
    display: table;
    font-size: 1rem;
    letter-spacing: normal;
    margin: 0 auto 1rem auto;
    padding: 0.5rem 2rem;
    text-shadow: none;
    transition: all 500ms linear 0s;
    width: 100%;
}

.ffold-back:hover {
    background-position: 0.5rem center;
    opacity: 0.9;
}

#back_button.back-to-search .new,
#back_button.new-search .history {
    display: none;
}

.ffold-single h1 {
    font-size: 2rem;
    text-transform: uppercase;
}

.ffold-single h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.resource-meta {
    background-color: #FAFAFA;
    border-radius: 3px;
    padding: 1rem;
}

.resource-meta h2 {
    font-size: 1.25rem;
}

.site-inner>.wrap.clearfix {
    max-width: 1300px;
    padding: 0;
    width: calc( 100% - 2rem );
}

.agency-logo {
    display: block;
    margin-bottom: 0.5rem;
    max-width: 200px;
}

a.external-link {
    background-color: var(--blue);
    border-radius: 3px;
    color: white;
    display: block;
    font-family: var(--heading);
    padding: 1rem;
    position: relative;
    text-align: center;
}

a.external-link i {
    display: block;
    float: right;
    margin-top: 0.3rem;
}

a.external-link:hover {
    background-color: var(--sky);
    color: black;
}

.ffold-filter-form li.sf-field-search,
.ffold-search-form li:not(.sf-field-search) {
    display:none;
}

.saf-fields-container .sf-field-search label {
    float: right;
    max-width: 400px;
    width: 100%;
}

.ffold-search-form .sf-field-search input {
    margin-bottom: 0;
}

.compare-container.desktop {
    display: none;
}

.page-template-comparison .accc-page-header:not(:first-of-type) {
    display: none;
}

.ffold-compare-accordion .program-title:not(:first-of-type):before {
    content: ", ";
}

.ffold-compare-accordion .program-title:last-of-type:before {
    content: " and ";
}

.ffold-compare-accordion input[type=checkbox] {
    display: none;
}

.ffold-compare-accordion label {
    background-color: var(--sky);
    cursor: pointer;
    display: block;
    margin: 1rem 0 0 0;
    padding: 0.5rem;
}

.ffold-compare-accordion h3 {
    margin: 0;
}

.ffold-compare-accordion h3:after {
    color: white;
    content: "+";
    float: right;
    font-family: var(--copy);
}

.ffold-compare-accordion ul {
    list-style-type: none;
    margin: 1rem 0;
    padding: 0.5rem;
}

.ffold-compare-accordion .accordion-content {
    background-color: var(--off-white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s ease;
}

.ffold-compare-accordion input:checked ~ label ~ .accordion-content {
    max-height: 200vh;
}

.ffold-compare-accordion input:checked ~ label h3:after {
    content: "-";
}

.ffold-compare-accordion .program-name {
    display: block;
    font-family: var(--heading);
}

.ffold-comparison-page-top {
    background-color: var(--off-white);
    margin-bottom: 2rem;
    margin-left: 50%;
    margin-top: -2rem;
    padding: 1rem 0;
    translate: -50% 0;
    width: 100vw;
}

.ffold-comparison-buttons {
    display: flex;
    justify-content: space-between;
}

.ffold-comparison-buttons .ffold-button {
    padding: 0.5rem;
}

.ffold-button.back {
    background-color: black;
}

.ffold-button.back .label:after {
    content: "Back to Results";
}

.ffold-button.share .label:before {
    content: "Share This Comparison";
}

.page-template-template_intro #main {
    background-color: var(--off-white);
}

.page-template-template_intro  a:not(.ffold-button) {
    color: var(--blue);
}

.page-template-template_intro .story-hero {
    display: none;
}

.intro-field {
    margin-bottom: 2rem;
}

.intro-field label .step {
    color: #CCC;
    margin-right: 5px;
}

.ffold-intro-hero {
    margin-left: 50%;
    margin-top: -3.75rem;
    position: relative;
    translate: -50% 0;
    width: 100vw;
}

.ffold-intro-hero img {
    display: block;
    width: 100%;
}

.ffold-intro-content {
    background-color: white;
    margin: 1rem auto;
    padding: 1rem;
}

.checkbox-buttons input[type=checkbox] {
    display: none;
}

.checkbox-buttons label {
    border: 1px solid var(--off-white);
    border-radius: 99px;
    cursor: pointer;
    display: inline-block;
    font: normal 0.85rem var(--default);
    margin: 0 0.5rem 0.5rem 0;
    padding: 0 0.5rem;
}

.checkbox-buttons input:checked + label {
    background-color: var(--sky);
}

.checkbox-buttons input:hover {
    background-color: var(--off-white);
}

.end-note {
    color: #666;
    font-size: 0.85rem;
    margin-top: 1rem;
}

div#select-notice {
    color: red;
    margin-bottom: 1rem;
}

@media screen and ( max-width: 799px ) {
    .ffold-button.back .label:after {
        content: "Back";
    }
    .ffold-button.share .label:before {
        content: "Share";
    }
}

.ffold-button.back .label:before,
.ffold-button.share .label:after {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    height: 0.5rem;
    width: 0.5rem;
}

.ffold-button.share .label:after {
    height: 1rem;
    translate: 0 0.25rem;
    width: 1rem;
}

.ffold-button.back .label:before {
    content: " ";
    background-image: url('chevron-left-solid.svg');
}

.ffold-button.share .label:after {
    content: " ";
    background-image: url('link-solid.svg');
}

/* Used for Alpine.js */
[x-cloak] {
    display: none !important;
}

.program-comparison .compare-all-btn {
    background-color: rgba(255,255,255, 0.85);
    display: table;
    margin-left: -1rem;
    margin-top: 1rem;
    padding: 1rem;
    position: sticky;
    top: 1rem;
    right: 0px;
    z-index: 400;
}

.program-comparison .compare-all-btn button {
    border-radius: 3px;
    font: normal .85rem var(--heading);
}

.program-comparison .compare-all-btn button:disabled {
    background-color: rgba(0,0,0,0.5);
}

.program-comparison .compare-btn {
    border-radius: 3px;
    cursor: pointer;
    margin-top: 24px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    background-color: var(--off-white);
    max-width: 8em;
    white-space: nowrap;
}

.program-comparison .compare-btn:hover {
    background-color: var(--sky);
}

.program-comparison .compare-btn.notSelectable {
    background-color: white;
    border: 1px solid var(--off-white);
    color: #CCC;
    cursor: not-allowed;
}

.program-comparison .compare-btn-box {
    border-radius: 2px;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    background-color: white;
}


.program-comparison .compare-btn-box.isSelected {
    background-color: black;
}

.program-comparison .compare-btn.notSelectable .compare-btn-box {
    background-color: #EEE;
}

.ffold-no-results ~ table {
    display: none;
}

@media screen and ( min-width: 30rem ) {

    .saf-fields {
        display: flex;
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .saf-fields > form > ul {
        grid-template-columns: 1fr 1fr;
    }

    .ffold-buttons {
        flex-basis: 100%;
        grid-gap: 2rem;
        grid-template-columns: auto auto 1fr;
        margin-bottom: 2rem;
        order: 1;
    }

    .ffold-filter-form {
        flex-basis: 100%;
        order: 2;
    }

    .ffold-button.download-spreadsheet {
        justify-self: end;
    }

    .results-count {
        text-align: right;
    }

    .ffold-single .accc-page-header .page-width {
        position: relative;
    }

    .ffold-single h1 {
        font-size: 2.625rem;
    }
    
    .ffold-back {
        padding: 0.5rem 4rem;
        width: auto;
    }

}

@media screen and ( min-width: 45rem ) {

    .saf-fields > form > ul {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .results-mobile {
        display: none;
    }

    .results-desktop {
        display: block;
        word-break: break-word;
    }

    .resource-meta {
        margin-top: 1rem;
    }
    
    .ffold-columns {
        display: grid;
        grid-column-gap: 2rem;
        grid-template-columns: 1fr 50%;
    }
    
    .ffold-back {
        padding-left: 3rem;
        padding-right: 3rem;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .ffold-filter-form .searchandfilter ul {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: space-between;
    }
    
    .ffold-filter-form .searchandfilter > ul > li {
        flex-basis: calc( 50% - 0.5rem );
    }

    .compare-container.mobile {
        display: none;
    }

    .compare-container.desktop {
        display: block;
    }

    .compare-container h2 {
        text-align: center;
    }
    
    .compare-container h4 {
        margin: 0;
    }

    .compare-container table {
        border-collapse: collapse;
        border-spacing: 0;
        margin-left: -2rem;
        width: calc( 100% + 4rem );
    }
    
    .compare-container table th, 
    .compare-container table td {
        padding: 1rem;
        vertical-align: top;
    }

    .compare-container table tr th:not(:last-of-type),
    .compare-container table tr td:not(:last-of-type) {
        border-right: 1px solid var(--off-white);
    }

    .ffold-compare-table.columns-2 th,
    .ffold-compare-table.columns-2 td {
        width: 50%;
    }

    .ffold-compare-table.columns-3 th,
    .ffold-compare-table.columns-3 td {
        width: 33.33%;
    }

    .ffold-compare-table.columns-4 th,
    .ffold-compare-table.columns-4 td {
        width: 25%;
    }

    .ffold-intro-content {
        margin-left: auto;
        margin-right: auto;
        margin-top: -2rem;
        max-width: 800px;
        padding: 2rem;
        position: relative;
    }

    .program-comparison .compare-all-btn {
        top: 4rem;
    }

    .ffold-filter-form .searchandfilter ul.chosen-results {
        flex-wrap: nowrap;
        gap: 0;
    }

}

@media screen and ( min-width: 81rem ) {
    
    .ffold-columns {
        display: grid;
        grid-column-gap: 2rem;
        grid-template-columns: 1fr 33.33%;
    }
    
    .ffold-filter-form .searchandfilter > ul > li {
        flex-basis: calc( 25% - 1rem );
    }

}

/* Breakpoint Corrections */

@media screen and ( max-width: 767px ) {
    .saf-fields .searchandfilter select.sf-input-select {
        background-color: white;
        border: 1px solid #C8C8C8;
        padding: 0.5rem;
    }
}

@media screen and ( min-width: 992px ) and ( max-width: 1199px ) {
    .site-inner>.wrap.clearfix,
    .page-width {
        max-width: 940px;
    }
}

@media screen and ( min-width: 1200px ) and ( max-width: 1399px ) {
    .site-inner>.wrap.clearfix,
    .page-width {
        max-width: 1150px;
    }
}