@import url(https://use.typekit.net/iww0heq.css);

:root {
    --blue: #252161;
    --red: #ff0000;
    --light-blue: #f3f4f7;
    --featured-banner-color: #fff !important;
    --featured-banner-background-color: #eaab00 !important;
    --text-color: var(--blue) !important;
    --border-color: var(--blue) !important;
    --link-color: var(--blue) !important;
    --dialog-titlebar-background-color: var(--blue) !important;
    --dialog-titlebar-color: #fff !important;
    --site-header-background-color: #e1e1e1 !important;
    --slate-cart-background-color: #e1e1e1 !important;
    --slate-cart-border-color: #e1e1e1 !important;
    --button-primary-text-transform: none !important;
    --button-primary-background-color: var(--red) !important;
    --button-primary-border-color: var(--red) !important;
    --button-background-color: var(--blue) !important;
    --button-primary-disabled-background-color: #c0c0c0 !important;
    --button-primary-disabled-color: #666 !important;
    --button-primary-disabled-border-color: #ccc !important;
    --donation-amount-button-background-color: #fff !important;
    --donation-amount-button-color: var(--blue) !important;
    --donation-amount-button-border-color: var(--blue) !important;
    --donation-amount-button-selected-background-color: var(--blue) !important;
    --donation-amount-button-selected-color: #fff !important;
    --donation-amount-button-border-color: var(--blue) !important;
    --featured-toggle-color: var(--blue) !important;
    --featured-toggle-border-color: #d2d4db !important;
    --featured-toggle-background-color: #d2d4db !important;
    --featured-toggle-selected-color: var(--blue) !important;
    --featured-toggle-selected-border-color: var(--blue) !important;
    --featured-toggle-selected-background-color: var(--light-blue) !important;
    --recipient-photo-border-color: #ccc !important;
    --recipient-photo-border-width: 0 !important;
    --recipient-photo-democratic-border-color: #049ade !important;
    --recipient-photo-republican-border-color: var(--red) !important;
    --recipient-card-vertical-min-width: 225px !important;

    --fs-xl: 2.25rem !important;
    --fs-xxl: 2.5rem !important;
    --fs-xxxl: 3rem !important;
}

a, a.link {
    color: var(--link-color);
}

body {
    font-family: neue-haas-grotesk-display, sans-serif;
}

body > header {
    background-color: var(--site-header-background-color);
}

body > header > .wrapper {
    display: grid;
    grid-template-rows: minmax(4rem, auto);
    grid-template-columns: 0 minmax(0, auto) minmax(0, auto) 0;
    grid-template-areas: ". logo nav";
    column-gap: 10px;
}

.user-welcome {
    display: none !important;
}

/* LOGO */
body > header > .wrapper > .logo {
    grid-area: logo;
    align-self: center;
}

body > header > .wrapper > .logo > a {
    display: block;
    background: url(/theme/assets/tomorrowpac-logo.png) no-repeat;
    background-size: contain;
    background-repeat: no-repeat;
    width: 371px;
    height: 35px;
    max-width: 80%;
}

/* NAVIGATION */
body > header > .wrapper > nav {
    grid-area: nav;
}

body > header > .wrapper > nav > span {
    display: block;
}

body > header > .wrapper > nav > ul {
    margin: 0;
    padding: 5px;
    display: none;
    width: fit-content;
    grid-auto-columns: auto;
    justify-content: space-between;
}

body > header > .wrapper > nav > ul > li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

body > header > .wrapper > nav > ul > li > a {
    color: #fff !important;
}

body > header > .wrapper > nav.active > ul {
    display: grid;
}

/* STANDARD PAGES */
.content-section,
.content-entry {
    padding-top: 1rem;
}

main.my > header > h1,
.content-section > h1,
.content-entry > header > h1 {
    font-weight: bold;
    font-size: 3rem;
    color: var(--text-color);
}

.content-entry > header > h1 {
    margin-bottom: .25rem;
}

.content-entry > header > time {
    margin-bottom: .5rem;
    display: block;
}

.content-section > .content-entry {
    margin-bottom: 2rem;
}

.content-section > .content-entry > header > h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

.action-button,
.my-account button.primary-button,
.my-account button.export-button {
    background-color: var(--blue) !important;
    color: #fff;
}

/* DONATION PAGE */

.currency-input > input,
.currency-input > label {
    font-weight: bold;
}

.currency-input > input[type=number] {
    font-size: var(--fs-m) !important;
}

.slate-filters > div:nth-child(3) {
    display: none;
}

.slate-toolbar button {
    font-weight: bold;
}

.slate-allocation-tools > section > header > h1 {
    display: none;
}

.slate-allocation-tools > section > header > p {
    font-weight: bold;
    text-align: center;
}

.slate-allocation-tools > section {
    text-align: center;
}

.featured-toggle {
    column-gap: 0.5rem;
}

.featured-toggle label {
    text-indent: .5rem;
}

.featured-toggle > label.selected {
    border-bottom: 1px solid var(--featured-toggle-selected-border-color) !important;
}

.recipient-info .name {
    font-weight: bold !important;
}

.recipient-featured-banner {
    padding: .25rem .5rem;
    grid-area: unset !important;
    position: absolute;
    right: 0;
    top: 0;
}

.page-header h1 {
    font-weight: bold;
    font-size: var(--fs-xxl);
}

.donation-buttons > button,
.donation-buttons > div.selected,
.donation-buttons > div.selected > input {
    font-weight: bold;
}

.custom-fields {
    display: none;
}

.terms a,
.terms a:link {
    color: blue !important;
}

body > footer a {
    color: var(--site-footer-color);
    text-decoration: underline;
}

/* Styling for default footer links */
body > footer > .wrapper {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

body > footer > .wrapper > * {
    margin: 0 auto;
}
        
body > footer > .wrapper > nav > ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2em;
    margin: 0;
    padding: 0;
}

body > footer > .wrapper > nav > ul > li {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

body > footer > .wrapper > .paid-for-disclaimer {
    padding: 1em;
    border: 1px solid var(--border-color);
}

body > footer > .wrapper > * > p {
    padding: 0;
    margin: 0;
}

@media screen and (min-width: 768px) {
        
    body > header {
        padding: 0 0 3rem 0;
    }

    body > header > .wrapper {
        display: grid;
        grid-template-rows: minmax(4rem, auto) auto;
        grid-template-columns: 0 minmax(0, auto) minmax(0, auto) 0;
        grid-template-areas: ". logo welcome ."
                            ". logo nav .";
    }

    /* LOGO */
    body > header > .wrapper > .logo {
        grid-area: logo;
        align-self: end;
    }

    body > header > .wrapper > .logo > a {
        width: 371px;
        height: 35px;
        max-width: 80%;
    }

    /* WELCOME */
    body > header > .wrapper > .user-welcome {
        grid-area: welcome;
        justify-self: end;
        margin-top: .5rem;
    }

    /* NAVIGATION */
    body > header > .wrapper > nav > span {
        display: none;
    }

    body > header > .wrapper > nav > ul {
        margin: 0;
        padding: 0;
        display: grid;
        width: 100%;
        grid-auto-flow: column;
        grid-auto-columns: auto;
        justify-content: space-between;
    }

    body > header > .wrapper > nav > ul > li > a {
        color: var(--blue) !important;
    }

    .recipient-card {
        border-color: #e1e1e1 !important;
    }

    .recipient-card-list.vertical .recipient-card button {
        font-weight: 400 !important;
    }

    .donation-buttons > .limit {
        font-size: 11px !important;
    }

    /* CLASSIC */
    .list-template .recipients>.recipient>.details>.name {
        font-size: 2rem !important;
    }
}

@media screen and (min-width: 1210px) {
    body > header > .wrapper {
        column-gap: 0;
    }
}