#customContent_TM {
    --flex-gold: #FFE435;
    --dark: #000;
    --light: #fff;
    --grey: #f5f5f5;
    --grey-dark: #212121;
    --dim: #f5f5f5;

    --nyt-brand-font: "NYT Franklin", "Helvetica", sans-serif;
    --body-size: 24px;
    --body-line-height: 150%;
    --h-kern: -.4px;
    --h-kern-wide: 1px;
    --h-line-height: 90%;
}

/* –––––––––––––––GENERAL CSS RESETS–––––––––––––––*/


body {
    margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

#customContent_TM {
    font-family: var(--nyt-brand-font);
    background-color: var(--dark);
    color: var(--light);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    height: 100%;
    width: 100%;
    overflow-wrap: break-word;
}

#customContent_TM ul {
    list-style: none;
}

html {
    scrollbar-color:
            #FFE435
            #212121;
    scrollbar-width: thin;
}

#customContent_TM > img {
    max-width: none;
}

::-webkit-scrollbar {
    background-color: #212121;
    border-radius: 0;
    width:8px;
}
::-webkit-scrollbar-thumb {
    background-color: #FFE435;
}


/*–––––––––––––––FONT IMPORTS–––––––––––––––*/

/* Medium */
@font-face {
    font-family: "NYT Franklin";
    src: url("assets/fonts/NYTFranklinMedium.otf") format('opentype');
    font-style: normal;
    font-weight: normal;
}

/* ExtraBold Wide*/
@font-face {
    font-family: "NYT Franklin Wide";
    src: url("assets/fonts/NYTFranklinWide-Extrabold.otf") format('opentype');
    font-style: normal;
    font-weight: 800;
}


/*–––––––––––––––TYPOGRAPHY–––––––––––––––*/

p.memo__p {
    font-size: var(--body-size);
    line-height: var(--body-line-height);
    margin-bottom: 3rem;
    margin-block-start: 0;
}

h1.memo__h1 {
    text-transform: uppercase;
    font-family: "NYT Franklin Wide", "Helvetica", serif;
    letter-spacing: var(--h-kern);
    line-height: var(--h-line-height);
    font-size: 56px;
    margin-bottom: 1.5rem;
    margin-block-start: 112px;
}

h2.memo__h2 {
    font-family: "NYT Franklin Wide", "Helvetica", serif;
    letter-spacing: var(--h-kern);
    line-height: 100%;
    font-size: 32px;
    margin-bottom: 1rem;
    margin-block-start: 0;
    display: flex;
}

h2.memo__h2.mt {
    margin-top: 4rem;
}

h2.memo__h2::before {
    content: url(https://storage.googleapis.com/nyt-ads-static-assets/ads/creative-tech/other/the-memo/assets/img/bullet.png);
    display: inline-block;
    margin-right: 45px;
    margin-left: 45px;
    width: 5px;
}

.memo__p > a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--flex-gold);
    transition: color .3s ease-in-out;
}

.memo__p > a:hover {
        cursor: pointer;
        color: var(--flex-gold);
    }

.memo__p.ma {
    margin-left: 100px;
}

.memo__section .mb0 {
    margin-bottom: 0;
}

#s00 {
    margin-block-start: 0;
}

.memo__header > .memo__h1 {
    margin-block-start: 0;
}

#customContent_TM .illo-credit {
    font-size: 16px;
    color: var(--flex-gold);
    margin-top: 5rem;
}

/*–––––––––––––––LAYOUT–––––––––––––––*/

#customContent_TM > .memo__wrapper {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0 2rem;
    overflow-x: clip;
}

.memo__header{
    grid-column: 5 / 11;
    grid-row: 1;
    margin-top: 8rem;
}

.memo__metadata {
    display: grid;
    grid-template-columns: 1fr 4fr;
    text-transform: uppercase;
    font-weight: bold;
    font-family: "NYT Franklin Wide", "Helvetica", serif;
    letter-spacing: var(--h-kern-wide);
    gap: 8px 24px;
    font-size: var(--body-size);
    margin: 72px 0;
}

.memo__p.sticky-margin, .memo__nav-list.sticky-margin {
    /* This margin aligns the nav menu with the top of the content text */
    margin-top: 112px;
}

.memo__content {
    grid-column: 5 / 11;
    grid-row: 2;
    z-index: 0;
    margin-bottom: 8rem;
}

.memo__section > .section-header {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.memo__h1.section-number {
    color: var(--flex-gold);
    /*width: auto;*/
    margin-right: 8px;
}

.memo__p > span.highlight {
    background-color: var(--flex-gold);
    color: var(--dark);
}


.memo__header > .divider, .memo__pull-quote-wrapper > .divider  {
    height: 1px;
    width: auto;
    background-color: var(--dark);
    box-shadow: 0 0.5px 0 var(--grey);
}

#customContent_TM .dim {
    color: var(--dim);
}


/*–––––––––––––––PULL QUOTES–––––––––––––––*/

.memo__pull-quote-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    justify-content: space-between;
    margin-bottom: 56px
}

.quote-text > h1, .quote-mark {
    font-size: 28px;
    font-family: "NYT Franklin Wide", "Helvetica", serif;
    letter-spacing: var(--h-kern-wide);
    margin: 0 0 1.5rem 0;
}

.quote-text > h1 {
    margin-top: 12px;
    line-height: 100%;
    text-transform: uppercase;
}

.pull-quote > .quote-mark {
    font-size: 56px;
    line-height: 100%;
}

.quote-text > p {
    margin-bottom: 0;
}

#customContent_TM .pull-quote {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin: 0 4.5rem;
    justify-content: flex-start;
}

.quote-text > p {
    font-size: var(--body-size);
}


/* –––––––––––––––NAV––––––––––––––– */

.memo__nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
    color: var(--dim);
    margin-right: 0;
    transition: opacity .2s ease-in-out;
}

.memo__nav-list > li {
    text-transform: uppercase;
    font-family: "NYT Franklin Wide", "Helvetica", serif;
    letter-spacing: var(--h-kern);
    line-height: 95%;
    font-size: calc(var(--body-size) - 4px);
    margin-bottom: 0;
}

.memo__nav-list > li:hover {
    cursor: pointer;
    color: var(--flex-gold);
    text-decoration: none;
}

a.nav-link {
    display: flex;
    gap: 12px;
    text-decoration: inherit;
    color: inherit;
    filter: drop-shadow(0 0 10px rgba(0,0,0,.5));
    transition: all .3s ease-in-out;
}

.memo__nav-bar {
    grid-column: 2 / 5;
    grid-row: 2;
    /*position: sticky;*/
    /*top: 0;*/
    align-self: start;
    padding-right: 48px;
    z-index: 1000;
}

#customContent_TM ul.memo__nav-list {
    padding-inline-start: 0;
}

/* –––––––––––––––IMAGES––––––––––––––– */

.memo__section > .image-container{
    display: grid;
    place-content: center;
    margin: 0;
}

.memo__section img.large-img {
    max-width: 140%;
    transform: translate(-20%);
}

.inline-image-left {
    float: left;
    margin-right: 16px;
    margin-top: 16px;
    margin-bottom: 16px;
    max-width: 100px;
}

.inline-image-right {
    float: right;
    margin-left: 16px;
    margin-top: 16px;
    margin-bottom: 16px;
    max-width: 100px;
}

.invert {
    filter: invert(1) contrast(1.5);
    max-width: 150px;
}

#customContent_TM > img {
    filter: drop-shadow(-8px 8px 20px rgba(0,0,0,.8));
}


/*–––––––––––––––ANIMATION–––––––––––––––*/

.active-nav-item {
    color: var(--flex-gold);
}

/* –––––––––––––––RESPONSIVENESS–––––––––––––––*/

/* Large Screens (default styles are for X-Large screens) */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .memo__wrapper {
        gap: 1.5rem;
    }

    .memo__header{
        grid-column: 5 / 12;
    }

    .memo__content {
        grid-column: 5 / 12;
    }

    .memo__nav-bar {
        grid-column: 1 / 5;
        padding-right: 12px;
    }

    #customContent_TM ul.memo__nav-list {
        padding-inline-start: 16px;
    }
}

/* Small Screens */
@media only screen and (max-width: 768px) {

    #customContent_TM {
        --body-size: 18px;
        --body-line-height: 125%;
    }
    #customContent_TM > .memo__wrapper {
        display: flex;
        flex-direction: column;
        margin: 0;
        padding-bottom: 8rem;
    }

    .memo__header {
        margin-left: 0;
        margin-right: 0;
        padding-top: 8px;
    }

    h2.memo__h2 {
        font-size: 24px;
        margin-top: 0;
    }

    h2.memo__h2.mt {
        margin-top: 8px;
    }

    h1.memo__h1 {
        font-size: 42px;
        margin-block-start: 0;
    }

    p.memo__p {
        margin-bottom: 2rem;
    }

    #customContent_TM .memo__content {
        margin: 0;
    }

    #customContent_TM .pull-quote {
        margin: 0 2rem;
    }

    .memo__section img.large-img {
        max-width: 120%;
        transform: translate(-10%);
    }

    .memo__section > .section-header {
        display: flex;
        flex-direction: column;
        gap: 0;
        /*margin-bottom: 12px;*/
        padding-top: 96px;
    }

    .memo__h1.section-number {
        color: var(--flex-gold);
        width: auto;
        margin-bottom: 16px;
    }

    .memo__section > .large-img {
        margin: 24px 0;
    }

    h2.memo__h2::before {
        margin-right: 20px;
        margin-left: 20px;
        width: 5px;
    }

    .memo__p.ma {
        margin-left: 45px;
    }

    #customContent_TM .pull-quote {
        gap: 0;
        margin: 0;
        justify-content: flex-start;
    }

    .memo__pull-quote-wrapper {
        gap: 1.5rem;
        margin: 4rem 0 3.5rem 0;
    }

    .memo__p.sticky-margin {
        margin-top: 72px;
    }

    .memo__nav-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        padding-right: 0;
    }

    #customContent_TM .memo__nav-bar > ul.memo__nav-list {
        display: grid;
        grid-template-columns: 2fr repeat(6, 1fr);
        gap: 1px;
        margin-block-end: 0;
        background-color: var(--grey);
    }

    ul.memo__nav-list > li {
        background-color: var(--dark);
        color: var(--grey);
        border-top: 1px solid var(--grey);
        margin: 0;
        /*padding: 16px 4px;*/
        display: flex;
        font-size: 16px;
        justify-content: center;
        align-items: center;
        line-height: 100%;
        text-align: center;
    }

    a.nav-link {
        padding: 16px 4px;
    }


    ul.memo__nav-list > li:hover, ul.memo__nav-list > li:active  {
        background-color: var(--flex-gold);
        color: var(--dark);
    }

    #customContent_TM .nav-link {
        filter: none;
    }

    #customContent_TM .nav-link:hover, #customContent_TM .nav-link:active {
        color: inherit;
    }

    span.hide {
        display: none;
    }

    ul.memo__nav-list > li.active-nav-item {
        color: var(--dark);
        background-color: var(--flex-gold);
    }

    .inline-image-left, .inline-image-right {
        max-width:75px;
        margin: 8px 0;
    }

    .inline-image-left {
        margin-right: 8px;
    }

    .inline-image-right {
        margin-left: 8px;
    }

}


