/* Styles for case for CBM educaton

   developer:   keegand
   requires:    /css/global.css
   ========================================================================== */

/* ==========================================================================
   Main
   ========================================================================== */

h1,
h2,
h3 {
    font-family: 'Enriqueta', Arial, sans-serif;
    text-align: center;
}

.inner { max-width: 658px; }

p {
    font-size: 1.25rem;
    line-height: 1.875rem;
}

#main img {
    margin: auto;
    max-width: 100%;
    display: block;
}

#main img.img-border { border: 1px solid #ddd; }

/* ==========================================================================
   Intro
   ========================================================================== */

#intro {
    background: linear-gradient(#002652 0%, #44a1e0 100%);
    color: #fff;
}

#intro .inner {
    padding-bottom: 0;
    padding-top: 70px;
}

#intro .inner img {
    display: block;
    width: 295px;
    margin: auto;
}

#intro h1 {
    font-size: 5.18rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 52px;
}

#intro h2 {
    font-size: 2.75rem;
    color: #8ed7ff;
    font-weight: 400;
    margin-top: 44px;
    margin-bottom: 0;
}

#intro hr {
    margin: 3.125rem 0;
    background-color: #8ed7ff;
}

#quote {
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
}

#making-the-case-index blockquote {
    font-size: 1.45rem;
    line-height: 1.5;
    font-weight: 300;
    background: url('/img/case-quote-open.png') no-repeat;
    background-size: 2.375rem 2.1875rem;
    padding: 0 4.325rem;
    margin: 0;
    max-width: 60rem;
    position: relative;
}

#making-the-case-index blockquote:after {
    background: url('/img/case-quote-close.png') no-repeat;
    background-size: 2.4375rem 2.1875rem;
    content: '';
    display: inline-block;
    width: 2.5rem;
    height: 2.875rem;
    position: absolute;
    top: 0;
    right: 0;
}

#quote .speaker {
    text-align: center;
    margin-top: 12px;
    padding: 2.25rem 4.325rem 4.625rem 4.325rem;
}

#quote .speaker a {
    align-items: center;
}

#quote .speaker a:hover p {
    color: #eadf66;
}

#quote .speaker p {
    color: #fff;
    font-weight: 400;
    font-size: 15px;
}

#quote .speaker img {
    margin: 0 .625rem 0 5.875rem;
}

/* ==========================================================================
   Sticky nav
   ========================================================================== */

#the-header {
    background-color: #053355;
    height: 40px;
}

#the-header.collapsed {
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10;
}

#the-header .inner { padding: 0 1rem; }

#the-header .inner .nav-group {
    display: table;
    margin: auto;
    padding-top: 9px;
}

#the-header .inner .nav-group a {
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin: 0 12px;
}

#the-header .inner .nav-group a.selected,
#the-header .inner .nav-group a:hover { color: #eadf66; }

/* ==========================================================================
   The Problem
   ========================================================================== */

#the-problem {
    background-size: 1735px 1105px;
    background-position: center top;
    background-image: url('/img/case-the-problem-background.png');
    background-repeat: no-repeat;
    background-color: #111;
    color: #fff;
}

#the-problem .inner {
    max-width: 856px;
    padding: 2.1875rem 7.4375rem 85px;
    background-color: rgba(0, 0, 0, 0.5);
}

#the-problem h1 {
    font-size: 3.125rem;
    color: #fff;
    margin-top: 47px;
    margin-bottom: 6px;
}

#the-problem h2 {
    color: #eadf66;
    font-size: 2.25rem;
    font-weight: 400;
}

#the-problem h3 {
    color: #eadf66;
    font-size: 1.25rem;
    font-weight: 400;
    margin-top: 40px;
    margin-bottom: 18px;
}

#the-problem p { margin: 36px 0; }

/* ==========================================================================
   The Fix
   ========================================================================== */

#the-fix .inner {
    max-width: 56rem;
    padding-top: 50px;
    padding-bottom: 30px;
}

#the-fix h1 {
    color: #156683;
    font-size: 3.125rem;
    margin-bottom: 2px;
}

#the-fix h2 {
    color: #0692b7;
    font-size: 2.25rem;
    margin-bottom: -10px;
}

#the-fix h4 {
    font-family: 'Enriqueta', Arial, sans-serif;
    color: #757575;
    text-align: center;
    margin: 10px 0 15px;
}

#the-fix h4:last-of-type { margin-bottom: 38px; }

#the-fix img { margin: 35px auto 42px; }

#the-fix img.right-overlap {
    position: absolute;
    margin-left: 29.5%;
    margin-top: 17px;
    max-width: 270px;
}

#the-fix img.right {
    width: 210px;
    margin: 0;
}

#the-fix img.right__600 { display: none; }

#the-fix .inner>div { margin-top: 80px; }

#the-fix .fix {
    border: 2px solid #a4ced9;
    background: #edfaff;
    padding: 60px 100px 50px;
    margin-top: -15px;
    margin-bottom: 60px;
}

#the-fix .fix p { color: #454545; }

#the-fix .fix p.sub-text {
    color: #757575;
    font-size: 1rem;
}

#the-fix .fix-header {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    color: #fff;
    font-size: 20px;
}

#the-fix .fix-header span {
    background: #0692b7;
    padding: 12px 20px;
}

#the-fix .fix-header span~span,
#the-fix .fix-header span.hide__600 { background: #156683; }

#the-fix .fix-header span.hide__600 { padding-left: 6px; }

#the-fix .fix-list-header,
#the-fix .fix-list-inline {
    font-size: 1.25rem;
    line-height: 1.875rem;
    margin-top: 32px;
}

#the-fix .fix-list-header {
    font-weight: 600;
    color: #156683;
}

/* ==========================================================================
   Rocket Grid
   ========================================================================== */

#the-fix .fix #rocket-vertical p {
    line-height: 1.4rem;
    font-size: 0.9rem;
}

#the-fix .fix #rocket-vertical .bar-title-wrapper { font-size: 1.5rem; }

#the-fix img.right-overlap { right: -85px; }

.grid.width-full {
    position: relative;
    padding-bottom: 4px !important;
}

#rocket-vertical .yellow-box.description { padding-right: 15%; }

#rocket-vertical .red-box.description { padding-right: 20%; }

#rocket-vertical {
    margin-right: 15%;
    margin-top: 26px;
}

#rocket-vertical li:nth-child(n) span {
    color: #535353;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
}

#rocket-vertical li:nth-child(n+1) { margin-top: -0.375rem; }

#rocket-vertical .yellow-box.description,
#rocket-vertical .red-box.description,
#rocket-vertical .purple-box.description,
#rocket-vertical .lime-box.description {
    border-style: solid;
    border-width: 1px 1px 1px 26px;
    padding: 2.0rem 1.875rem 1.0rem;
    padding-top: 1rem;
}

#rocket-vertical .yellow-box.description,
#rocket-vertical .red-box.description { padding-right: 100px; }

#rocket-vertical .yellow-box.description {
    background: #fffcf6;
    border-color: #f3b444;
}

#rocket-vertical .red-box.description {
    background: #fff2f1;
    border-color: #db4d3e;
}

#rocket-vertical .purple-box.description {
    background: #fff3f9;
    border-color: #b82f78;
}

#rocket-vertical .lime-box.description {
    background: #fbfff2;
    border-color: #9cc948;
}

#rocket-vertical .red-up-arrow::before,
#rocket-vertical .purple-up-arrow::before,
#rocket-vertical .lime-up-arrow::before {
    border-style: solid;
    border-width: 0.25rem 0.8125rem 0 0.8125rem;
    content: " ";
    margin-top: 0;
    position: absolute;
}

#rocket-vertical .red-up-arrow::before { border-color: #ffffff #db4d3e #db4d3e #db4d3e; }

#rocket-vertical .purple-up-arrow::before { border-color: #ffffff #b82f78 #b82f78 #b82f78; }

#rocket-vertical .lime-up-arrow::before { border-color: #ffffff #9cc948 #9cc948 #9cc948; }

#rocket-vertical .red-down-arrow,
#rocket-vertical .yellow-down-arrow,
#rocket-vertical .purple-down-arrow,
#rocket-vertical .lime-down-arrow {
    border-style: solid;
    border-width: 0.25rem 0.75rem 0.375rem 0.875rem;
    height: 0;
    margin-top: 0;
    width: 0;
}

#rocket-vertical .red-down-arrow { border-color: #db4d3e transparent transparent transparent; }

#rocket-vertical .yellow-down-arrow { border-color: #f3b444 transparent transparent transparent; }

#rocket-vertical .purple-down-arrow { border-color: #b82f78 transparent transparent transparent; }

#rocket-vertical .lime-down-arrow { border-color: #9cc948 transparent transparent transparent; }

#rocket-vertical .bar-title {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0.2rem;
}

#rocket-vertical.vertical-bar {
    display: inline-block;
    border-left: 1px solid #fff;
    margin-top: 0.5rem;
    padding-left: 0.8rem;
}

#rocket-vertical span.number { font-size: 1.5rem; }

#rocket-vertical li:nth-child(n) span.sub-title {
    font-size: 1.325rem;
    font-weight: 400;
    line-height: 0.5rem;
}

#rocket-vertical .title {
    font-size: 1.325rem;
    font-weight: 700;
}

#rocket-vertical .vertical-bar {
    display: inline-block;
    border-left: 1px solid #ccc;
    margin-top: 0.5rem;
    padding-left: 0.8rem;
}

/* ==========================================================================
   The Summary
   ========================================================================== */

#the-summary { background: #f3f9dd; }

#the-summary .inner { padding-bottom: 90px; }

#the-summary h1 {
    color: #156683;
    font-size: 3.125rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
}

#the-summary h2 {
    color: #156683;
    font-size: 2.25rem;
    font-weight: 400;
    margin-bottom: 32px;
}

#the-summary p {
    margin-bottom: 40px;
    color: #454545;
}

/* ==========================================================================
   The Change
   ========================================================================== */

#the-change {
    background-color: #31a4d5;
    background-size: 1500px 478px;
    background-position: center top;
    background-image: url('/img/case-sunburst-background.png');
    background-repeat: no-repeat;
}

#the-change,
#the-change h1,
#the-change h2 { color: #fff; }

#the-change h1 {
    margin-top: 140px;
    margin-bottom: 12px;
    font-size: 3.125rem;
}

#the-change h2 {
    font-size: 2.25rem;
    margin-bottom: 80px;
}

#the-change h3 {
    font-size: 1.5rem;
    color: #fff14e;
    text-align: left;
    margin-bottom: 10px;
    margin-top: 50px;
}

#the-change p { margin-bottom: 12px; }

#the-change a.button {
    font-size: 1.125rem;
    font-weight: 400;
    color: #31a4d5;
    border-radius: 5px;
    background-color: #fff;
    border-color: #fff;
}

#the-change a.button:hover {
    background-color: #fff14e;
    border-color: #fff14e;
}

/* ==========================================================================
   Detailed view with subtabs
   ========================================================================== */

#the-fix .cbm-nodes {
    display: table;
    margin: auto;
    max-width: 100%;
    padding-top: 15px;
}

#the-fix .cbm-nodes-inline {
    float: left;
    height: 40px;
    margin-top: 8px;
}

a.subtab {
    font-size: 16px;
    background-color: #fff;
    font-weight: 600;
    border: 2px solid #33aadd;
    padding: 10px 0;
    display: inline-block;
    margin: 0 20px 0 0;
    width: 44px;
    height: 43px;
    text-align: center;
    position: relative;
}

.fix-list-inline a.subtab { padding: 4px 0; }

.fix-list-inline a.subtab .squares-wrapper { margin-top: 0; }

a.subtab:hover .tooltip,
.step-count:hover .tooltip { display: inline-block; }

.step-count:hover .tooltip {
    left: -49.6px;
    bottom: 38px;
}

a.subtab.selected,
a.subtab:hover {
    background: #33aadd;
    color: #fff;
}

a.subtab.selected:before,
a.subtab.selected:after {
    content: '';
    display: inline-block;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
}

a.subtab.selected:before {
    border-bottom: 20px solid #fff;
    border-top: 10px solid transparent;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    top: 45px;
    z-index: 1;
}

a.subtab.selected:after {
    border-bottom: 21px solid #c3c3c3;
    border-top: 10px solid transparent;
    border-left: 20px solid transparent;
    border-right: 21px solid transparent;
    top: 43px;
    z-index: 0;
}

a.subtab.yellow {
    color: #ec9f19;
    border-color: #f6b61a;
}

a.subtab.yellow.selected,
a.subtab.yellow:hover {
    color: #fff;
    background: #f6b61a;
}

a.subtab.cbm-red {
    color: #dc4a30;
    border-color: #dc4a30;
}

a.subtab.cbm-red.selected,
a.subtab.cbm-red:hover {
    color: #fff;
    background: #dc4a30;
}

a.subtab.magenta {
    color: #ba2f7d;
    border-color: #ba2f7d;
}

a.subtab.magenta.selected,
a.subtab.magenta:hover {
    color: #fff;
    background: #ba2f7d;
}

a.subtab.green {
    color: #9cc948;
    border-color: #9cc948;
}

a.subtab.green.selected,
a.subtab.green:hover {
    color: #fff;
    background: #9cc948;
}

a.subtab .squares-wrapper {
    position: absolute;
    display: inline-grid;
    padding-left: 9px;
    margin-top: -6px;
}

a.subtab .squares-wrapper .square {
    display: inline-block;
    background-color: #dc4a30;
    height: 3px;
    width: 3px;
    margin-bottom: 2px;
}

a.subtab.selected .squares-wrapper .square,
a.subtab:hover .squares-wrapper .square { background-color: #fff; }

.tooltip {
    position: absolute;
    width: 130px;
    border: 1px solid #d8d8d8;
    color: #757575;
    background: #f8f8f8;
    display: none;
    z-index: 3;
    bottom: 49.6px;
    left: -44px;
    font-size: 11px;
    padding: 5px;
    line-height: 1.4;
}

.tooltip:before {
    content: '';
    border-top: 8px solid #f8f8f8;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid transparent;
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    width: 0;
    height: 0;
    margin: auto;
    display: inline-block;
    z-index: 4;
}

.tooltip:after {
    content: '';
    border-top: 8px solid #d8d8d8;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid transparent;
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    width: 0;
    height: 0;
    margin: auto;
    display: inline-block;
}

.tooltip.right,
.tooltip.right.bottom {
    left: 51.2px;
    bottom: auto;
    top: 0;
    margin: auto;
    height: auto;
}

.step-count:hover .tooltip {
    left: 36.8px;
    bottom: auto;
    top: 0;
    margin: auto;
    height: auto;
}

.tooltip.right:before,
.tooltip.right.bottom:before,
.step-count:hover .tooltip:before {
    border-top: 8px solid transparent;
    border-left: 8px solid transparent;
    border-right: 8px solid #f8f8f8;
    border-bottom: 8px solid transparent;
    bottom: auto;
    right: auto;
    top: 4.8px;
    left: -14px;
}

.tooltip.right:after,
.tooltip.right.bottom:after,
.step-count:hover .tooltip:after {
    border-top: 8px solid transparent;
    border-left: 8px solid transparent;
    border-right: 8px solid #d8d8d8;
    border-bottom: 8px solid transparent;
    bottom: auto;
    right: auto;
    top: 4.8px;
    left: -16px;
}

.tooltip.bottom {
    bottom: auto;
    top: 49.6px;
    left: -44px;
}

.tooltip.bottom:before {
    border-top: 8px solid transparent;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #f8f8f8;
    top: -14px;
    right: 0;
    bottom: auto;
    left: 0;
}

.tooltip.bottom:after {
    border-top: 8px solid transparent;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #d8d8d8;
    top: -16px;
    right: 0;
    bottom: auto;
    left: 0;
}

span.slide-quote::before { content: "“"; }

span.slide-quote:before,
span.slide-quote:after {
    font-family: 'Enriqueta', Arial, sans-serif;
    margin: 5px;
    font-size: 1.5rem;
    line-height: 1;
}

span.slide-quote::after { content: "”"; }

/* ==========================================================================
   responsive breakpoint styles
   ========================================================================== */

/* styles for large screens (1200px)
   ========================================================================== */

@media all and (max-width: 1200px) {
}

/* styles for medium screens (900px)
   ========================================================================== */

@media all and (max-width: 900px) {
    #making-the-case-index blockquote {
        background: url('/img/case-quote-open.png') 15px 0 no-repeat;
        background-size: 2.375rem 2.1875rem;
    }
    #making-the-case-index blockquote { margin-right: 15px; }
    #the-header .inner .nav-group { padding-top: 11px; }
    #the-fix img.right { margin-left: 8px; }
    #the-problem .inner { padding: 2.1875rem 4.4375rem 85px; }
    #the-fix .fix { padding: 70px 30px 40px; }
    #the-fix img.right-overlap {
        width: 30vw;
        max-width: 225px;
        right: -25px;
        top: 20px
    }
    #the-fix .fix-header span { font-size: 1.1rem; }
}

/* styles for small screens (600px)
   ========================================================================== */

@media all and (max-width: 600px) {
    #the-fix img.right-overlap {
        margin-bottom: 0;
        position: initial;
        margin-left: 24.5%;
        width: 40vw;
    }
    #the-fix img.right { margin-left: 0; }
    #rocket-vertical { margin-right: 0; }
    #rocket-vertical .yellow-box.description,
    #rocket-vertical .red-box.description { padding-right: 1.875rem; }
    #the-fix img.right { display: none; }
    #the-fix img.right__600 {
        margin: auto;
        float: none;
        width: 210px;
        display: block;
    }
    #the-fix .fix-header { font-size: 1rem; }
    #the-fix .fix-header span { font-size: 1.25rem; }

    #quote .speaker img { margin-left: 0; }
}
}

/* styles for minimum supported screen width (320px)
   ========================================================================== */

@media all and (max-width: 320px) {
}

/* printer styles
   ========================================================================== */

@media print {
}