html {
    box-sizing: border-box;
    overflow-x: hidden;
    font-family: sans-serif;
    -ms-text-size-adjust:100%;
    -webkit-text-size-adjust:100%
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    margin: 0;
    color: #404040;
    overflow-x: hidden;
    font-size: 1.6em;
	min-height: 100vh;
    font-family: freight-text-pro, serif;
}
header, footer, h1, h2, h3, h4, .button {
    font-family: sofia-pro, sans-serif;
}
header, footer {
    line-height: 1.4em;
}
header, main, .page-block {
    margin-bottom: 2em;
}
.page-container {
    max-width: 800px;
    margin: 0 auto;
}
a {
    color: #232D44;
}
h1, h2, h3, h4 {
    line-height: 1.3;
    margin: 0 0 .33em;
}
.button {
    border: 0;
    border-radius: .25em;
    background-color: #fc6e1f;
    color: #fff;
    text-decoration: none;
    font-size: 21px;
    padding: .67em 1em;
    line-height: 1;
    display: inline-block;
}


/* HEADER IMAGES */
header #header-image { /* default to Philly skyline homepage background */
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(../img/backgrounds/philly.jpg);
    background-position: 0 -90px;
    height: 320px;
}
.sponsors #header-image {
    background-image: url(/media/img/backgrounds/sponsors.jpg);
    background-position: 0 -150px;
}
.conduct #header-image {
    background-image: url(/media/img/backgrounds/lifevests.jpg);
    background-position: 0 0;
}
.volunteer #header-image {
    background-image: url(/media/img/backgrounds/volunteer.jpg);
    background-position: 0 -225px;
}
.sessions #header-image {
    background-image: url(/media/img/backgrounds/sessions.jpg);
    background-position: 0 -200px;
}
.participation #header-image {
    background-image: url(/media/img/backgrounds/participation.jpg);
    background-position: 0 -220px;
}
.scholarships #header-image {
    background-image: url(/media/img/backgrounds/scholarships.jpg);
    background-position: 0 0;
}
.childcare #header-image {
    background-image: url(/media/img/backgrounds/childcare.jpg);
    background-position: 0 -100px;
}
.logistics #header-image {
    background-image: url(/media/img/backgrounds/logistics.jpg);
    background-position: 0 0;
}
.program #header-image {
    background-image: url(/media/img/backgrounds/chemical.jpg);
    background-position: 0 0;
}
.localguide #header-image {
    background-image: url(/media/img/backgrounds/localguide.jpg);
    background-position: 0 0;
}
.volunteer #header-image {
    background-image: url(/media/img/backgrounds/facilitators.jpg);
    background-position: 0 -225px;
}
.documentation #header-image {
    background-image: url(/media/img/backgrounds/documentation.jpg);
    background-position: 0 0;
}
.remote #header-image {
    background-image: url(/media/img/backgrounds/remote.jpg);
    background-position: 0 0;
}

/* HEADER STYLES */
header {
    position: relative;
}
a#header-logo img {
  display: block;
  width: 420px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -98px;
  margin: auto;
}

header nav {
    background-color: #fff;
}
header nav ul {
    font-size: .67em;
    margin: 0 0 0 120px;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: inherit;
}
header nav li {
    list-style: none;
    padding-left: 0;
}
header nav li a {
    display: block;
    padding: 1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #111;
}
header nav a:hover {
    text-decoration: underline;
}
#header-callout {
    background-color: #232D44;
    color: #fff;
    text-align: center;
    line-height: 1;
}
#header-callout span {
    padding: .5em 0;
    display: inline-block;
}
#header-callout .button {
    margin: .5em 0 .5em 1em;
}

#header-image {
    height: 300px;
    background-size: cover;
    background-repeat: no-repeat;
    border: 0px solid #fff;
    border-left: 0;
    border-right: 0;
    position: relative;
}

#header-image .photo-credit {
    font-size: .5em;
    line-height: 1;
    position: absolute;
    right: 1em;
    bottom: 0;
    opacity: .75;
}
#header-image .photo-credit, #header-image .photo-credit a {
    color: #fff;
    text-shadow: 0 0 1px rgba(0,0,0,.7);
}

/* MAIN CONTENT AREA STYLES */

main {
    padding: 0 1em 1em;
    line-height: 1.6em;
    margin-top: 120px;
}
main ul, main p {
    margin: 0 0 1em;
}
main input {
    font-size: .75em;
    padding: .25em;
    margin: 0 0 .5em;
}

#main-callout {
    text-align: center;
    line-height: 1;
    margin-bottom: 1.5em;
}
#main-callout span {
    padding: .5em 0;
    display: inline-block;
    font-family: sofia-pro, sans-serif;
    font-weight: 700;
}
#main-callout .button {
    margin: .5em 0 .5em 1em;
}
.homepage #latest-news {
    margin-left: 0;
    padding-left: 0;
}
.homepage #latest-news li {
    list-style: none;
    padding-left: 0;
}
.homepage h2 {
    margin-top: 1.2em;
}
.big-lead {
    font-size: 1.5em;
    line-height: 1.3;
    margin: 0 -1em 1.2em;
}

.sponsor-block {
    margin: 0 0 2.5em;
}
.sponsor-block img {
    width: 67%;
    display: block;
    margin: 0 auto .5em;
}
.sponsor-block .narrow-logo img,
.sponsor-block.secondary img {
    width: 50%;
}
.sponsor-block h2, 
.sponsor-block h3 {
    text-align: center;
}

/* FOOTER STYLES */
footer p {
    margin: 0 0 1em;
}

footer #footer-nav {
    background-color: #232D44;
    margin-bottom: 1em;
    font-size: .6em;
}
footer ul, footer p {
    margin: 0 0 2em;
    padding: 0;
}
footer li {
    list-style: none;
    padding-left: 0;
}
footer #footer-nav ul {
    line-height: 1;
    display: flex;
    align-items: center;
    height: inherit;
    padding: 0 2em;
    margin: 0;
}
footer #footer-nav li {
    flex-grow: 1;
}
footer #footer-nav li a {
    display: block;
    text-align: center;
    padding: 1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
}
footer #footer-nav a:hover {
    text-decoration: underline;
}
footer #footer-details .page-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.sponsor-list a {
    display: block;
    margin: .5em 0;
    text-align: center;
}
.sponsor-list img {
    width: 83%;
}
.sponsor-list .narrow-logo {
    padding-left: 25px;
}
.sponsor-list .narrow-logo img {
    width: auto;
    height: 50px;
}
.sponsor-list {
    display: grid;
    grid-template-columns: 300px 300px;
}

footer #footer-details,
footer #footer-sponsors {
    padding: 1em;
    font-size: .67em;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
    font-size: .83em;
    margin-bottom: 3em;
}
td {
    padding: 0 1em 1em 0;
    vertical-align: top;
    line-height: 1.3;
}

.live table {
    width: 100%;
    margin-bottom: 0;
}
table .session-time {
    max-width: 130px;
}
table a.session-title {
    font-weight: bold;
}
table a.session-transcript {
    font-family: sofia-pro,sans-serif;
    display: inline-block;
    line-height: 1;
    font-size: .67em;
    color: #fff;
    background-color: #a6b3d1;
    padding: 3px 6px 4px;
    border-radius: 3px;
    margin-top: .4em;
    text-decoration: none;
}

.hidden {
    display: none;
}
.context-link {
    font-size: .83em;
}

/* SESSION LIST STYLES */
.session-proposal-list {
    margin-top: 3em;
}
.session-proposal-list .session-proposal {
    margin-bottom: 2em;
}
.session-proposal-list .facilitator {
    font-size: .8em;
    font-style: italic;
    margin-bottom: .33em;
}


/* FORM STYLES */
.fr_description {
    font-size: .8em;
    font-style: italic;
    line-height: 1.2;
    padding: .25em 0 .5em;
}
.fr_form h3,
.fr_form h4 {
    margin-top: 2em;
}
.fr_form hr {
    border: 0;
    border-bottom: 1px solid #aaa;
}
.fr_text.size_large {
    font-family: sofia-pro, sans-serif;
    font-weight: bold;
}
.fr_min_max {
    font-family: sofia-pro, sans-serif;
    font-size: .7em;
}
.fr_text.size_medium,
.fr_text.size_small,
.fr_response_field label {
    line-height: 1.2;
}
.fr_response_field label {
    padding-bottom: .33em;
}
.fr_response_field_paragraph textarea.size_medium {
    width: 100% !important;/* override screendoor import later on */
    padding: .25em .5em;
}
.fr_response_field_text input#c22,
.fr_response_field_text input#c24,
.fr_response_field_text input#c26,
.fr_response_field_text input#c28,
.fr_response_field_text input#c50 {/* not ideal, but only way to target session fields */
    width: 100%;
}
.fr_response_field_paragraph textarea,
.fr_response_field_text input {
    font-family: sofia-pro, sans-serif;
    font-size: .8em;
}


@media screen and (min-width: 1200px) {
    .participation #header-image {
        background-position: 0 -290px;
    }
}

@media screen and (min-width: 1400px) {
    .homepage #header-image {
        background-position: 0 -250px;
    }
    .sessions #header-image {
        background-position: 0 -230px;
    }
    .participation #header-image {
        background-position: 0 -350px;
    }
}

@media screen and (min-width: 1600px) {
    .sessions #header-image {
        background-position: 0 -280px;
    }
    .participation #header-image {
        background-position: 0 -450px;
    }
}

@media screen and (min-width: 1800px) {
    .participation #header-image {
        background-position: 0 -500px;
    }
}

@media screen and (max-width: 960px) {
    .big-lead {
        margin: 0 0 1.2em;
    }
    header #header-image {
        height: 240px;
    }
    #header-image .photo-credit {
        font-size: .4em;
    }
    .homepage #header-image {
        background-position: 0 -90px;
    }
    .volunteer #header-image {
        background-position: 0 -150px;
    }
    .sessions #header-image {
        background-position: 0 -150px;
    }
    .participation #header-image {
        background-position: 0 -200px;
    }
}

@media screen and (max-width: 800px) {
    body {
        font-size: 1.5em;
    }
    header, main, .page-block {
        margin-bottom: 1.3em;
    }
    a#header-logo img {
      width: 360px;
      bottom: -84px;
    }
    #header-image .photo-credit {
        bottom: auto;
        top: 1em;
    }
    #header-callout {
        line-height: 1.6;
        padding: .25em;
    }
    #header-callout span {
        display: block;
        padding: 0;
    }
    #header-callout .button {
        margin: .5em;
    }
    .big-lead {
        font-size: 1.4em;
    }
    .sponsors #header-image {
        background-position: 0 -80px;
    }
    .volunteer #header-image {
        background-position: 0 -100px;
    }
    .sessions #header-image {
        background-position: 0 -120px;
    }
    .participation #header-image {
        background-position: 0 -150px;
    }
    .sponsor-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .sponsor-list .narrow-logo {
        padding-left: 0;
    }
    .sponsor-list .narrow-logo img {
        width: 50%;
        height: auto;
        vertical-align: text-top;
    }
    .sponsor-block.secondary img {
        width: 67%;
    }
}

@media screen and (max-width: 680px) {
    a#header-logo img {
      bottom: -70px;
    }
}

@media screen and (max-width: 640px) {
    a#header-logo img {
      width: 320px;
      bottom: -75px;
    }
    header nav ul {
        font-size: .6em;
    }
    .homepage #header-image {
        background-position: 0 -40px;
    }
    .sponsors #header-image {
        background-position: 0 0;
    }
    .volunteer #header-image {
        background-position: 0 -60px;
    }
    .sessions #header-image {
        background-position: 0 -80px;
    }
    .participation #header-image {
        background-position: 0 -80px;
    }
    .sponsor-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    footer #footer-nav ul {
        display: inherit;
        padding: .5em 0;
    }
    footer #footer-nav li a {
        text-align: left;
    }
}

@media screen and (max-width: 580px) {
    a#header-logo img {
      width: 320px;
      bottom: -65px;
    }
}

@media screen and (max-width: 540px) {
    a#header-logo img {
      width: 320px;
      bottom: -45px;
    }
    #main-callout .button {
        margin-right: .5em;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 1.4em;
    }
    a#header-logo img {
      position: relative;
      width: 80%;
      margin-left: 10%;
      margin-right: 9%;
      margin-top: 0;
      margin-bottom: 0;
    }
    header nav ul {
        align-items: center;
        padding: 0 1em;
        margin: 0;
    }
    header nav ul li {
        flex-grow: 1;
    }
    main {
        margin-top: 50px;
    }
    #main-callout .button {
        margin-left: 0;
        margin-right: 0;
    }
    .homepage #header-image {
        background-position: 0 0;
    }
    .volunteer #header-image {
        background-position: 0 0;
    }
    .sessions #header-image {
        background-position: 0 0;
    }
    .participation #header-image {
        background-position: 0 0;
    }
    footer #footer-details .page-container,
    footer #footer-sponsors .page-container {
        display: inherit;
    }
    footer #footer-sponsors h3,
    .sponsor-list {
        display: inherit;
        text-align: center;
    }
    .sponsor-list img {
        width: 67%;
        height: auto;
        margin: .5em 0;
    }
    .sponsor-list .narrow-logo img {
        width: 40%;
        vertical-align: inherit;
    }
    .sponsor-block img {
        width: 100%;
    }
}

@media screen and (max-width: 320px) {
    header nav ul {
        font-size: .5em;
    }   
}
