/* Styles for cusomter stories

   developer:   rmiske
   requires:    /common/framework/css/framework.en.css
   ========================================================================== */


/* ==========================================================================
   SETUP
   ========================================================================== */
:root {
    --wrapper-h-pad: 3.125rem;
}
.page-width {
    margin: 3.125rem auto;
    max-width: 1200px;
    padding: 0 var(--wrapper-h-pad);
    width: 100%;
}


/*shared*/
body.customerstories {
    font-family: 'Source Sans Pro', Arial, sans-serif;
}
#hdr h1 {
    color: #dd1100;
    font-size: 2.8125rem;
    font-weight: 400; 
    line-height: 1.2;
}
.customerstories p#note { 
    color: #888; 
    font-size: 0.875rem; 
    margin: 2rem 0; 
}



/* ==========================================================================
   LANDING
   ========================================================================== */
.cstory-wrap {
    background: #eee; 
    border: 1px solid #c4c4c4; 
    display: grid;
    grid-template-columns: 1fr 286px;
    padding: 0.625rem; 
    margin-top: 2rem; 
    /*max-width: 902px;*/
}
.cstory-wrap > div {
    background: #fff;
    border: solid #d7d7d7;
}

.cstory-text {
    border-width: 1px 0 1px 1px !important;
    padding: 1.25rem 3rem 1.25rem 1.5rem;
}
.cstory-text a { 
    color: #e00400; 
}
.cstory-text a:hover { 
    color: #f77700; 
}
.cstory-text h2 { 
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 1.75rem; 
    font-weight: 300; 
    line-height: 1;
}
.cstory-text h2 span.red { 
    border-right: 1px solid #a7a7a7;
    color: #dd1100; 
    margin-right: 0.375rem;
    padding-right: 0.375rem;
}
.cstory-text h2 span.grey { 
    color: #333;
    font-weight: normal; 
}
.cstory-text h3 { 
    color: #333; 
    font-size: 1.25rem; 
    margin: 1.25rem 0 0.5rem; 
}
.cstory-text p {
    line-height: 1.5;
}
.cstory-text p.quote { 
    color: #666; 
    font-size: 0.875rem;
    padding-bottom: 0.875rem;
}
.cstory-text p.attrib { 
    color: #333; 
    font-size: 0.75rem; 
    font-style: italic;
    margin: 0 2rem; 
}

.cstory-img {
    border-width: 1px 1px 1px 0 !important;
    font-size: 0; 
    text-align: center;
}



/* ==========================================================================
   SUBPAGES
   ========================================================================== */
.story-more {
    display: grid;
    grid-gap: 0 3rem;
    grid-template-areas:
        "breadcrumb breadcrumb"
        "header story-more-img"
        "story-more-text story-more-img"
        "note note";
    grid-template-columns: 1fr 286px;
}

.story-more a.breadcrumb {
    color: #666;
    display: block;
    font-size: 0.875rem;
    grid-area: breadcrumb;
}
.story-more a.breadcrumb:hover { 
    color: #f77700; 
}

.story-more #hdr {
    grid-area: header;
}
.story-more #hdr h1 {
    font-size: 1.5rem;
    font-weight: 600;
}
.story-more #hdr h1 .subtitle {
    color: #333;
    display: flex;
    flex-wrap: wrap;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.2;
    padding: 0.25rem 0;
}
.story-more h1 strong {
    border-right: 1px solid #a7a7a7;
    margin-right: 0.25rem;
    padding-right: 0.25rem;
}

.story-more-text {
    color: #333;
    font-size: 0.875rem;
    grid-area: story-more-text;
    line-height: 1.5;
}
.story-more-text p {
    padding-bottom: 0.875rem;
}
.story-more-text p.quote {
    color: #666;
    font-size: 1rem;
    margin: 1.25rem 4.5rem 0 0;
}
.story-more-text p.attrib {
    color: #666;
    font-style: italic;
    margin: 0.375rem 4.5rem 1.625rem 0;
}
.story-more-text h3 {
    font-size: 1rem;
    font-weight: 600;
    padding: 1.125rem 0 0.875rem;
}
.story-more-text ul li {
    font-size: 0.75rem;
    padding: 0 0 0.375rem 0.75rem;
    position: relative;
}
.story-more-text ul li:before {
    color: #888;
    content: '\25FC';
    font-size: 0.5rem;
    margin-left: -0.75rem;
    position: absolute;
    top: 2px;
}

.story-more-img {
    grid-area: story-more-img;
    text-align: center;
}

.story-more p#note {
    border: 1px solid #c4c4c4;
    background: #eee;
    grid-area: note;
    margin: 1rem 0 0;
    padding: 0.5rem 0.75rem;
}



/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    /*setup*/
    #hdr h1 { line-height: 1.1; }
}


@media (max-width: 900px) {
    /*setup*/
    :root {
        --wrapper-h-pad: 2rem;
    }
    .page-width { margin: 2rem auto; }


    /*landing*/
    .cstory-wrap {
        grid-template-columns: 1fr;
    }
    .cstory-text {
        border-width: 1px 1px 0 1px !important;
        padding: 1.25rem 1.5rem;
    }
    .cstory-text p.attrib { 
        margin: 0; 
    }
    .cstory-img {
        border-width: 0 1px 1px 1px !important;
        padding-bottom: 1.25rem;
    }


    /*subpages*/
    .story-more {
        grid-template-areas:
            "breadcrumb"
            "header"
            "story-more-img"
            "story-more-text"
            "note";
        grid-template-columns: 1fr;
    }
    .story-more-img { margin-top: 2rem; }
}


@media (max-width: 600px) {
    /*setup*/
    :root {
        --wrapper-h-pad: 1rem;
    }

    
    /*subpages*/
    .story-more-text p.quote { margin-right: 0; }
}