/*Fonts*/
@font-face {
    font-family: Roboto;
    src: url(/static/fonts/Roboto-Regular.ttf);
    font-weight: normal;
}

@font-face {
    font-family: Roboto;
    src: url(/static/fonts/Roboto-Bold.ttf);
    font-weight: bold;
}

@font-face {
    font-family: Roboto;
    src: url(/static/fonts/Roboto-Light.ttf);
    font-weight: 100;
}

@font-face {
    font-family: Georgia;
    src: url(/static/fonts/Georgia-Regular.ttf);
    font-weight: normal;
}

@font-face {
    font-family: Georgia;
    src: url(/static/fonts/Georgia-Italic.ttf);
    font-style: italic;
}

/*Variables and global settings*/
:root {
    font-family: Roboto;
    --bordercolor: #e8e8e8;
    --darkgrey: #595959;
    --lightgrey: #f2f2f2;
    --darkblue: #173f73;
    --midblue: #1f64bf;
    --lightblue: #daedff;
    --margin: 25px;
    --headerheight: 84px;
    --ds-type-scale--2: 0.8125rem;
    --ds-type-scale--1: 0.9375rem;
    --ds-type-scale-0: 1.0625rem;
    --ds-type-scale-1: 1.25rem;
    --ds-type-scale-2: 1.4375rem;
    --ds-type-scale-3: 1.625rem;
    --ds-type-scale-4: 1.875rem;
    --ds-type-scale-5: 2.125rem;
    --ds-type-scale-6: 2.5rem;
    --ds-type-scale-7: 2.875rem;
    --ds-type-scale-8: 3.25rem;
    --ds-type-scale-9: 3.75rem;
    --ds-type-scale-10: 4.25rem;
    --ds-type-scale-11: 5rem;
    --ds-type-scale-12: 5.75rem;
}



@media only screen and (max-width: 500px) {
    :root {
        --margin: 15px;
        --headerheight: 54px;
    }
}

body {
    font-family: Roboto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.blue_underline {
    border-bottom: 3px solid var(--midblue);
}

/* navbar */

.navbar {
    background-color: white;
    width: 100%;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
}

#bm_home_logo {
    height: 30px;
    cursor: pointer;
}

@media only screen and (max-width: 500px) {
    #bm_home_logo {
        height: 20px;
    }
}

.navbar_right {
    padding: var(--margin);
}

.navbar_menu {
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    list-style-type: none;
    padding: var(--margin);
    margin: 0;
    align-items: center;
}

.menu_items {
    padding: 0 10px;
    display: inline;
}

.menu_items a {
    text-decoration: none;
    color: inherit;
}

#menu_item_blue {
    border-bottom: 3px solid var(--midblue);
}

@media only screen and (max-width: 950px) {
    .menu_items {
        display: none;
    }
}

/* The sidepanel menu */
.sidepanel {
    height: 100vh;
    width: 0;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    background-color: var(--lightgrey);
    overflow-x: hidden;
    transition: 0.5s;
    box-shadow: 5px 0px 5px rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-rows: auto auto;
    align-content: space-between
}

.sidebar_menu {
    display: grid;
    grid-template-rows: auto auto auto auto auto;
    list-style-type: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar_items {
    padding: 10px 10px 10px var(--margin);
    text-decoration: none;
    color: black;
    display: block;
    transition: 0.3s;
}

.sidebar_items a {
    font-weight: 100;
    text-decoration: none;
    color: black;
}

.sidebar_legal {
    padding: 5px 10px 5px var(--margin);
    color: var(--darkgrey);
    display: block;
    transition: 0.3s;
}

.sidebar_legal a {
    font-weight: normal;
    text-decoration: none;
    color: var(--darkgrey);
    border-bottom: 1px solid var(--darkgrey);
}

.header_menu_btn {
    border: none;
    background-color: rgba(0, 0, 0, 0);
    color: black;
    padding: 0 0 0 10px;
    display: grid;
    align-items: center;
    cursor: pointer;
}

.sidebar_btn {
    display: inline;
}

/* Section 1 */

.section1 {
    width: 100%;
    height: 50vh;
    background-color: var(--midblue);
    overflow: hidden;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-evenly;
}

/* Subheading section */
.subheading_section {
    background-image: url(/static/images/ldn_sunrise.png);
    background-position: 50% 42%;
    background-size: 100%;
    background-repeat: no-repeat;
    background-color: white;
    width: 100%;
    min-height: 20vh;
    display: grid;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#mmm_subheading_section {
    background-image: url(/static/images/sunrise.jpg);
    background-position: 50% 50%;
    background-size: 100%;
}

#research_subheading_section {
    background-image: url(/static/images/nyc.jpg);
    background-position: 50% 42%;
    background-size: 100%;
}

#subheading_section_mmm_article {
    background-color: rgba(0, 0, 0, 0.8);
    background-position: 50%;
    background-blend-mode: overlay;
    background-size: cover;
    background-repeat: no-repeat;
}

#subheading_section_mmm_article h1{
    color: white;
    position: relative;
    text-shadow: none !important;
    text-decoration: underline 5px solid var(--midblue);
}

#mmm_heading_date {
    color: inherit;
}

.subheading_section h1 {
    color: white;
    position: relative;
    font-weight: normal;
    font-size: 3em;
    text-shadow: 0 0 10px black;
}

@media only screen and (max-width: 500px) {
    .subheading_section h1 {
        font-size: 1.8em;
    }
}

/* pdf container*/

.pdf_inline_container {
    width: 100%;
    padding: var(--margin) 0;
    /*overflow-x: scroll;*/
}

@media only screen and (max-width: 500px) {
    .pdf_inline_container {
        width: calc(100% + (2 * (var(--margin))));
        margin: 0 calc(-1 * (var(--margin)));
        /*overflow-x: scroll;*/
    }
}

.pdf_inline_container div {
    margin: 0 auto !important;
    /*box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.2);*/
}

/*Footer*/

footer {
    background-color: var(--lightgrey);
    padding: 4rem 0;
}

.footer_container {
    max-width: 1250px;
    margin: 0 auto;
}

.footer_grid {
    padding: 0 0 var(--margin) 0;
    margin: 0 var(--margin);
    width: calc(100% - (2 * (var(--margin))));
    display: grid;
    grid-template-columns: 40% 30% 30%;
    justify-items: center;
    align-items: start;
    border-bottom: 2px solid var(--bordercolor);
}

.footer_list {
    list-style-type: none;
    margin: 0 0 var(--margin) 0;
}

.footer_list h4 {
    margin-top: 0;
    text-decoration: underline 2px var(--midblue);
}

.footer_list li {
    margin-bottom: 10px;
}

.footer_list a {
    text-decoration: none;
    color: var(--darkgrey);
}

.footer_legal_grid {
    padding: var(--margin) 0;
    margin: 0 var(--margin);
    width: calc(100% - (2 * (var(--margin))));
    display: grid;
    justify-content: end;
}

.footer_legal_grid div {
    margin: var(--margin) 0;
    display: grid;
    width: fit-content;
    grid-template-columns: auto auto auto;
    gap: 15px;
}

.footer_legal_grid a,
span {
    color: var(--darkgrey);
}

.footer_disclaimer {
    padding: 0 0 var(--margin) 0;
    margin: 0 var(--margin);
    width: calc(100% - (2 * (var(--margin))));
    display: grid;
    justify-content: start;
    font-weight: 100;
    font-size: 80%;
    text-align: justify;
}

.footer_disclaimer a {
    color: var(--midblue);
}

@media only screen and (max-width: 700px) {
    .footer_grid {
        grid-template-columns: auto;
        text-align: center;
    }

    .footer_list {
        padding: 0;
    }

    .footer_legal_grid div {
        grid-template-columns: auto;
        justify-content: center;
    }

    .footer_legal_grid {
        grid-template-columns: auto;
        justify-content: center;
        text-align: center;
    }
}

.content_body {
    padding: var(--margin);
}

.content_bg {
    max-width: 1250px;
    margin: 0 auto;
}

.blog_bg {
    max-width: 900px;
    margin: 0 auto 3rem auto;
}

.content_margins {
    margin: 0 var(--margin);
    width: calc(100% - (2 * (var(--margin))));
}

.blog_margins {
    margin: 0 var(--margin);
    width: calc(100% - (2 * (var(--margin))));
}

@media only screen and (max-width: 500px) {
    .content_margins {
        margin: 0;
        width: 100%;
    }

    .blog_margins {
        margin: 0;
        width: 100%;
    }
}

.home_title_header {
    background-color: rgba(0, 0, 0, 0.65);
    background-blend-mode: overlay;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    height: calc(100vh - 5rem);
    max-height: 50rem;
    min-height: 40rem;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
}

.home_title_wrapper {
    align-items: center;
    display: grid;
    height: 100%;
    position: relative;
    max-width: 780px;
    width: 100%;
    padding: 0;
}

@media only screen and (max-width: 1350px) {
    .home_title_header {
        max-height: 40rem;
        min-height: 30rem;
    }
}

@media only screen and (max-width: 500px) {
    .home_title_header {
        height: 100vh;
        max-height: none;
        min-height: auto;
    }
}

.home_latest {
    background-image: url(/static/images/thumbnails/mmm/latest.jpg);
    background-color: rgba(0, 0, 0, 0.8);
    background-blend-mode: overlay;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    padding: 3rem;
    border-top: var(--midblue) solid 5px;
}

.home_latest_content {
    display: block;
    position: relative;
    color: white;
}

.home_latest_content h2 {
    font-weight: 100;
    margin: 8px 0 var(--margin) 0;
}

.home_latest_content p {
    margin: var(--margin) 0;
}

.home_latest_content button {
    padding: 6px 15px;
    background-color: var(--midblue);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: var(--margin);
}

@media only screen and (max-width: 900px) {
    .home_latest {
        padding: 2rem var(--margin);
    }
}

/*
#latest_title::before {
    content: "Latest: ";
}

#latest_title::after {
    content: "...";
}

#latest_desc::before {
    content: "...";
} */

.home_latest_content ul {
    margin: 20px 0;
}

.home_latest_content ul li {
    margin-bottom: 10px;
    font-size: var(--ds-type-scale-1);
}

.home_latest_content ul li a {
    color: white;
    text-decoration: none;
}

.home_latest_content ul li a:hover {
    text-decoration: underline;
}

.home_p {
    font-family: Roboto;
    font-size: var(--ds-type-scale-1);
    width: 100%;
}

.home_p_small {
    font-family: Roboto;
    font-size: var(--ds-type-scale-0);
    width: 100%;
}

.home_p_small2 {
    font-family: Roboto;
    font-size: var(--ds-type-scale--1);
    width: 100%;
}

.home_h1 {
    font-size: var(--ds-type-scale-7);
    width: 100%;
}

.home_h2 {
    font-size: var(--ds-type-scale-5);
    width: 100%;
    font-weight: 100;
}

.latest_title_font {
    font-size: var(--ds-type-scale-7) !important;
    width: 100%;
}

.latest_title_font a {
    color: white;
    text-decoration: none;
}

.latest_title_font a:hover {
    text-decoration: underline;
}

.home_h2 a {
    text-decoration: none;
    color: inherit;
}

.home_h2 a:hover {
    text-decoration: underline;
}

.home_h3 {
    font-size: var(--ds-type-scale-4);
}

@media only screen and (max-width: 1050px) {
    .latest_title_font {
        font-size: var(--ds-type-scale-4) !important;
        width: 100%;
    }
}

@media only screen and (max-width: 800px) {
    #latest_title {
        font-size: var(--ds-type-scale-6);
    }
}

@media only screen and (max-width: 500px) {
    .home_p {
        font-size: var(--ds-type-scale-0);
    }

    .home_h1 {
        font-size: var(--ds-type-scale-5);
    }

    .home_h2 {
        font-size: var(--ds-type-scale-3);
    }

    .home_p_small {
        font-family: Roboto;
        font-size: var(--ds-type-scale--1);
    }

    .home_h3 {
        font-size: var(--ds-type-scale-3);
    }

    .latest_title_font {
        font-size: var(--ds-type-scale-5) !important;
        width: 100%;
    }
}



.home_cards_container {
    width: 100%;
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: center;
    justify-items: start;
}

.home_card_img_wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: auto;
    justify-items: center;
}

.home_card_img_wrapper img {
    max-width: 80%;
    max-height: 25rem;
}

.home_card_txt_wrapper {
    padding: 7rem 0;
    max-width: 100%;
}

.reverse_vertical .home_card_img_wrapper {
    order: -1;
}

.reverse_vertical .home_card_txt_wrapper {
    order: 1;
}

@media only screen and (max-width: 600px) {
    .home_cards_container {
        grid-template-columns: auto;
        grid-template-rows: auto auto;
        text-align: center;
        justify-items: center;
    }

    .home_cards_container div {
        padding: 3rem 0 !important;
    }

    .reverse_vertical .home_card_img_wrapper {
        order: 1;
    }

    .reverse_vertical .home_card_txt_wrapper {
        order: -1;
    }

    .home_cards_container a {
        text-align: center;
    }
}

.download_mmm_pdf {
    width: 100%;
    text-align: center;
}

.download {
    text-decoration: none;
    color: var(--darkblue);
    cursor: pointer;
}

.download:hover {
    text-decoration: underline;
}

.download::before {
    content: url(/static/icons/download_2_24dp_5F6368_FILL0_wght400_GRAD0_opsz24.svg);
    color: inherit;
    display: inline-block;
    margin: 0 5px 0 0;
    height: 18px;
}

.read_more_btn {
    border: 2px solid var(--midblue);
    border-radius: 5px;
    color: white;
    font-size: var(--ds-type-scale-0);
    background: var(--midblue);
    text-decoration: none;
    padding: 10px 18px;
    margin: var(--margin) 0 0 0;
    font-weight: bold;
}

.read_more_btn:hover {
    cursor: pointer;
}

.read_more {
    text-decoration: none;
    color: var(--darkblue);
    cursor: pointer;
}

.read_more:hover {
    text-decoration: underline;
}

.read_more::before {
    content: url(/static/icons/arrow_circle_right_darkblue.svg);
    color: inherit;
    display: inline-block;
    margin: 0 5px 0 0;
    height: 18px;
}

.read_more_no_arrow::before {
    content: none;
}

.home_latest_content .read_more {
    color: white;
}

.home_latest_content .read_more::before {
    content: url(/static/icons/arrow_circle_right_white.svg);
}

.home_title a {
    color: var(--darkblue);
}

.home_title {
    text-align: center;
    margin-bottom: 70px;
}

.home_research_ad {
    background-color: var(--lightgrey);
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    align-items: start;
    justify-items: start;
    height: fit-content;
}

.home_research_ad div {
    padding: var(--margin);
    width: calc(100% - (2 * (var(--margin))));
}

.home_research_ad img {
    width: 100%;
}

@media only screen and (max-width: 1000px) {
    .home_research_ad {
        grid-template-columns: auto;
        grid-template-rows: auto auto;
        text-align: center;
    }
}

.home_research_ad h2 {
    margin-bottom: 3rem;
    color: var(--midblue);
    font-weight: bold;
}

/*blog fonts*/
.mmm_original_header {
    margin: auto auto 3rem auto;
}

.blog_bold_1 {
    font-weight: bold !important;
}

.blog_p, .blog_margins p {
    font-family: Roboto;
    font-size: var(--ds-type-scale-1);
}

.blog_p_small {
    font-family: Roboto;
    font-size: var(--ds-type-scale-0);
}

.blog_h1 {
    font-size: var(--ds-type-scale-7);
    text-decoration: underline var(--midblue) 5px solid;
    text-align: center;
}

.blog_h2 {
    font-size: var(--ds-type-scale-4);
    color: var(--midblue);
}

.blog_h3 {
    font-size: var(--ds-type-scale-2);
    width: fit-content;
    color: var(--darkblue);
}

@media only screen and (max-width: 500px) {
    .blog_p, .blog_margins p {
        font-size: var(--ds-type-scale-0);
    }

    .blog_h1 {
        font-size: var(--ds-type-scale-5);
    }

    .blog_h2 {
        font-size: var(--ds-type-scale-2);
    }

    .blog_p_small {
        font-size: var(--ds-type-scale--1);
    }

    .blog_h3 {
        font-size: var(--ds-type-scale-1);
    }
}

.social_cards {
    display: grid;
    grid-template-columns: 50% 50%;
    justify-items: left;
    gap: var(--margin);
    width: calc(100% - (var(--margin)));
    margin-bottom: 50px;
}

@media only screen and (max-width: 600px) {
    .social_cards {
        grid-template-columns: auto;
        grid-template-rows: auto auto;
        gap: 50px;
    }
}

.social_cards div {
    width: 100%;
    display: grid;
    grid-template-rows: auto auto;
    justify-items: center;
    gap: 10px;
}

.social_cards div img {
    max-width: 80%;
    max-height: 25rem;
}

/*Morning Macro Briefing Page Header*/

.mmm_page_title {
    text-align: center;
    width: 100%;
}

.mmm_page_title h1 {
    border-bottom: 5px solid var(--midblue);
    display: inline;
    font-size: 3em;
    margin-top: 0;
    font-weight: normal;
}

.mmm_page_desc p {
    margin-top: 0;
}

.mmm_page_desc p a {
    margin-left: 20px;
    margin-bottom: 0;
}