/* ProLiteracy announcement — keeps the site's Spectral/HTML5 UP theme. */
.grant-announcement {
    padding: 3.2em 1.5em;
    text-align: center;
    border-bottom: 1px solid #e8e8ec;
}
.grant-announcement > .inner { max-width: 49em; }
.grant-eyebrow {
    color: #28477e !important;
    font-size: .78em;
    font-weight: 700;
    letter-spacing: .20em;
    text-transform: uppercase;
    margin-bottom: 1em;
}
.grant-announcement h2 {
    color: #2e3842;
    font-size: 1.35em;
    letter-spacing: .075em;
    line-height: 1.4;
    margin-bottom: .85em;
}
.grant-announcement p:not(.grant-eyebrow) {
    margin-left: auto;
    margin-right: auto;
    max-width: 42em;
    letter-spacing: .025em;
}
.grant-announcement .actions { margin-bottom: 0; }
.grant-button.button {
    background-color: #253a73;
    border: none;
    box-shadow: none;
    color: white !important;
    padding: 0 1.7em;
    max-width: 100%;
    white-space: normal;
    height: auto;
    min-height: 3.125em;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.grant-button.button:hover, .grant-button.button:focus {
    background-color: #354f90;
    box-shadow: none;
}
.grant-button.button:focus-visible { outline: 3px solid #00aac9; outline-offset: 4px; }
#main > header.press-hero {
    padding: 8em 1.5em 4em;
    background-position: center;
}
.press-release > .inner { max-width: 51em; }
.press-release h2 { font-size: 1.5em; letter-spacing: .06em; line-height: 1.5; }
.press-release p { letter-spacing: .02em; }
.press-logo {
    background: #fff;
    border: 1px solid #e4e6eb;
    border-radius: 5px;
    margin: 1.5em 0 2em;
    padding: 1.5em;
    text-align: center;
}
.press-logo img { display: block; width: 100%; height: auto; max-width: 751px; margin: 0 auto; }
.press-back { margin-top: 2.7em; }
.press-back a.button { white-space: normal; height: auto; line-height: 1.5; padding-top: .7em; padding-bottom: .7em; }
@media screen and (max-width: 736px) {
    .grant-announcement { padding: 2.5em 1em; }
    .grant-announcement h2 { font-size: 1.15em; }
    #main > header.press-hero { padding: 6em 1em 3em; }
    #main > header.press-hero h2 { font-size: 1.35em; }
    .press-release h2 { font-size: 1.2em; }
    .press-logo { padding: .8em; }
}

/* Supporter logos beside Contact Us: keep United Way and ProLiteracy together. */
.spotlight .image.partner-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1em;
    padding: 1.5em;
}
.spotlight .partner-logo-tile {
    display: block;
    width: 100%;
    max-width: 28em;
    padding: 1em;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,.10);
}
.spotlight .partner-logo-tile img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}
.spotlight a.partner-logo-tile:focus-visible {
    outline: 3px solid #00aac9;
    outline-offset: 4px;
}
@media screen and (max-width: 980px) {
    .spotlight .image.partner-logos { padding: 2em 1em 0; }
}


/* ProLiteracy grant article: foreground popup (native <dialog>) */
body.grant-dialog-open { overflow: hidden; }
dialog.grant-dialog {
    position: fixed;
    inset: 0;
    width: min(92vw, 760px);
    max-width: 760px;
    max-height: min(88vh, 900px);
    max-height: min(88dvh, 900px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #303c48;
    box-shadow: 0 20px 90px rgba(0,0,0,.45);
    overflow-y: auto;
    overscroll-behavior: contain;
    font-family: "Open Sans", Helvetica, sans-serif;
    letter-spacing: .012em;
    line-height: 1.65;
    text-align: left;
}
dialog.grant-dialog:not([open]) { display: none; }
dialog.grant-dialog::backdrop { background: rgba(10, 19, 33, .75); }
.grant-dialog-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    padding: 12px 18px 12px 32px;
    min-height: 62px;
    background: #f3f6fa;
    border-bottom: 1px solid #e1e6ee;
}
.grant-dialog-kicker {
    color: #28477e;
    font-size: .7em;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}
button.grant-dialog-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e0e7f0;
    color: #253a55 !important;
    box-shadow: none;
    font: 400 28px/1 Arial, Helvetica, sans-serif;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
}
button.grant-dialog-close:hover { background: #d0dbea; }
button.grant-dialog-close:focus-visible { outline: 3px solid #007cb6; outline-offset: 2px; }
.grant-dialog-content { padding: 28px 38px 36px; text-align: left !important; }
.grant-dialog-content h2 {
    margin: 0 0 1.3em;
    color: #253a55 !important;
    font-size: 1.35em;
    letter-spacing: .035em;
    line-height: 1.5;
}
.grant-dialog-content p {
    margin-bottom: 1.3em;
    font-size: .9em;
    line-height: 1.75;
    color: #303c48;
}
.grant-dialog-content strong { color: #253a55 !important; }
.grant-dialog-content a { color: #225da0; border-bottom: 1px dotted currentColor; }
.grant-dialog-content a:hover { color: #143d70; }
.grant-dialog-logo {
    background: white;
    border: 1px solid #e6eaf0;
    border-radius: 7px;
    padding: 14px;
    margin-bottom: 1.6em;
    text-align: center;
}
.grant-dialog-logo img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: auto;
}
.grant-dialog-content .grant-dialog-more { margin-bottom: 0; }
@media screen and (max-width: 736px) {
    dialog.grant-dialog { width: 94vw; max-height: 90vh; max-height: 90dvh; border-radius: 9px; }
    .grant-dialog-header { padding: 8px 12px 8px 18px; min-height: 55px; }
    .grant-dialog-kicker { font-size: .63em; }
    .grant-dialog-content { padding: 22px 20px 27px; }
    .grant-dialog-content h2 { font-size: 1.1em; }
    .grant-dialog-content p { font-size: .87em; }
    .grant-dialog-logo { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    dialog.grant-dialog { scroll-behavior: auto; }
}
