/* =========================================================
   ARTICLES PAGE
   Premium Editorial Blog
========================================================= */

.tml-articles-page {
    --articles-navy: #101c29;
    --articles-navy-soft: #1b2a3a;
    --articles-gold: #c79a48;
    --articles-gold-dark: #9f722a;
    --articles-gold-light: #e4bf78;
    --articles-cream: #f7f4ed;
    --articles-paper: #fcfbf8;
    --articles-white: #ffffff;
    --articles-text: #171d24;
    --articles-muted: #68727c;
    --articles-border: rgba(16, 28, 41, .11);

    overflow: hidden;
}


.tml-articles-page *,
.tml-articles-page *::before,
.tml-articles-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   COMMON
========================================================= */

.tml-articles-eyebrow {
    display: block;

    color: var(--articles-gold-dark);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .13em;

    text-transform: uppercase;
}


.tml-articles-eyebrow-light {
    color: var(--articles-gold-light);
}


/* =========================================================
   HERO
========================================================= */

.tml-articles-hero {
    --tml-articles-hero-image: none;

    position: relative;

    min-height: 500px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background-image:
        var(--tml-articles-hero-image);

    background-size: cover;

    background-position: center 38%;

    background-repeat: no-repeat;
}


.tml-articles-hero::after {
    content: "";

    position: absolute;

    right: -150px;
    top: -320px;
    left: -180px;

    width: 480px;
    height: 480px;

    border:
        1px solid
        rgba(255, 255, 255, .13);

    border-radius: 50%;

    pointer-events: none;
}


.tml-articles-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(10, 21, 33, .78) 0%,
            rgba(10, 21, 33, .61) 37%,
            rgba(10, 21, 33, .35) 70%,
            rgba(10, 21, 33, .22) 100%
        );
}


.tml-articles-hero .tml-shell {
    position: relative;

    z-index: 2;

    width: 90%;
}


.tml-articles-hero-content {
    max-width: 620px;
}


.tml-articles-hero-content h1 {
    margin:
        11px 0 0;

    color: #fff;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            49px,
            5.5vw,
            72px
        );

    font-weight: 500;

    line-height: .98;

    letter-spacing: -.03em;
}


.tml-articles-hero-content p {
    margin:
        17px 0 0;

    color:
        rgba(255, 255, 255, .78);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   INTRO
========================================================= */

.tml-articles-intro {
    padding:
        86px 0 53px;

    background: #fff;
}


.tml-articles-intro-grid {
    display: grid;

    grid-template-columns:
        1fr .72fr;

    gap: 85px;

    align-items: end;
}


.tml-articles-intro-grid h2 {
    margin:
        12px 0 0;

    color:
        var(--articles-navy);

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            43px,
            4.5vw,
            63px
        );

    font-weight: 500;

    line-height: 1.03;

    letter-spacing: -.025em;
}


.tml-articles-intro-grid h2 em {
    display: block;

    color:
        var(--articles-gold-dark);

    font-style: italic;
}


.tml-articles-intro-grid > p {
    max-width: 510px;

    margin: 0;

    color:
        var(--articles-muted);

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   FEATURED ARTICLE
========================================================= */

.tml-articles-featured {
    padding:
        24px 0 90px;

    background: #fff;
}


/* Wider shell only for the top featured article card */
.tml-articles-featured .tml-shell {
    width: 92%;
    max-width: 1390px;
}


.tml-articles-featured-card {
    display: grid;

    grid-template-columns:
        60% 40%;

    height: 520px;
    min-height: 0;

    overflow: hidden;

    border:
        1px solid
        var(--articles-border);

    border-radius: 22px;

    background:
        var(--articles-paper);

    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}


.tml-articles-featured-card:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 30px 72px
        rgba(16, 28, 41, .095);
}


/* featured image */

.tml-articles-featured-image {
    position: relative;

    display: block;

    height: 100%;
    min-height: 0;

    overflow: hidden;

    background:
        #ece8df;
}


.tml-articles-featured-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition:
        transform .65s
        cubic-bezier(.2, .7, .2, 1);
}


.tml-articles-featured-card:hover
.tml-articles-featured-image img {
    transform:
        scale(1.025);
}


/* featured content */

.tml-articles-featured-content {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding:
        27px 34px;
}


.tml-articles-featured-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    color:
        var(--articles-muted);

    font-size: 9px;
}

.tml-articles-featured-meta time{
    margin-bottom: 20px;
}


.tml-articles-category-pill {
    display: inline-flex;

    align-items: center;

    min-height: 25px;
    margin-bottom: 20px;

    padding:
        0 10px;

    border-radius: 999px;

    color:
        var(--articles-gold-dark);

    background:
        rgba(199, 154, 72, .11);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.tml-articles-meta-dot {
    width: 4px;
    height: 4px;

    border-radius: 50%;
    margin-bottom: 20px;

    background:
        var(--articles-gold);
}


.tml-articles-featured-content h2 {
    margin:
        18px 0 0;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            29px,
            2.55vw,
            36px
        );

    font-weight: 500;

    line-height: 1.08;

    letter-spacing: -.018em;
}


.tml-articles-featured-content h2 a {
    color:
        var(--articles-navy);

    text-decoration: none;

    transition:
        color .25s ease;
}


.tml-articles-featured-content h2 a:hover {
    color:
        var(--articles-gold-dark);
}


.tml-articles-featured-excerpt {
    margin:
        12px 0 0;

    color:
        var(--articles-muted);

    font-size: 12.5px;

    line-height: 1.65;
}


/* featured author */

.tml-articles-featured-author {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 14px;
}


.tml-articles-author-icon {
    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color:
        var(--articles-gold-dark);

    background:
        rgba(199, 154, 72, .1);
}


.tml-articles-author-icon svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.55;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.tml-articles-featured-author small {
    display: block;

    color:
        var(--articles-muted);

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .05em;
}


.tml-articles-featured-author strong {
    display: block;

    margin-top: 2px;

    color:
        var(--articles-navy);

    font-size: 10px;

    font-weight: 700;
}


/* featured footer */

.tml-articles-featured-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 16px;

    padding-top: 13px;

    border-top:
        1px solid
        var(--articles-border);
}


.tml-articles-read-link {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    color:
        var(--articles-navy);

    font-size: 10px;
    margin-top: 10px;

    font-weight: 800;

    text-decoration: none;
}


.tml-articles-read-link span {
    transition:
        transform .25s ease;
}


.tml-articles-read-link:hover span {
    transform:
        translateX(4px);
}


.tml-articles-read-time {
    display: inline-flex;

    align-items: center;

    gap: 7px;
    margin-top: 12px;

    color:
        var(--articles-muted);

    font-size: 9px;
}


.tml-articles-read-time svg {
    width: 16px;
    height: 16px;

    fill: none;

    stroke:
        var(--articles-gold-dark);

    stroke-width: 1.5;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.tml-articles-image-placeholder {
    width: 100%;
    height: 100%;

    min-height: 230px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #eee8dc,
            #e2d9c9
        );
}


.tml-articles-image-placeholder span {
    color:
        var(--articles-gold-dark);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .11em;

    text-transform: uppercase;
}


/* =========================================================
   ARTICLE LISTING
========================================================= */

.tml-articles-listing {
    padding:
        94px 0 105px;

    background:
        var(--articles-cream);
}


/*
 * On page 2+, intro + featured section do not exist,
 * so this creates correct breathing room directly after hero.
 */

.tml-articles-listing-paged {
    padding-top: 84px;
}


.tml-articles-listing-head {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 43px;
}


.tml-articles-listing-head h2 {
    margin:
        11px 0 0;

    color:
        var(--articles-navy);

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            41px,
            4.2vw,
            59px
        );

    font-weight: 500;

    line-height: 1.04;

    letter-spacing: -.022em;
}


.tml-articles-listing-head h2 em {
    display: block;

    color:
        var(--articles-gold-dark);

    font-style: italic;
}


/* current pagination page indicator */

.tml-articles-page-indicator {
    display: flex;

    align-items: baseline;

    gap: 8px;

    padding-bottom: 5px;
}


.tml-articles-page-indicator span {
    color:
        var(--articles-muted);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.tml-articles-page-indicator strong {
    color:
        var(--articles-gold-dark);

    font-family:
        Georgia,
        serif;

    font-size: 29px;

    font-weight: 500;
}


/* =========================================================
   GRID
========================================================= */

.tml-articles-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 26px 22px;

    align-items: stretch;
}


/* =========================================================
   MODERN ARTICLE CARD
========================================================= */

.tml-articles-card {
    position: relative;

    min-width: 0;

    height: 100%;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border:
        1px solid
        var(--articles-border);

    border-radius: 18px;

    background: #fff;

    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;

    transition:
        transform .34s ease,
        border-color .34s ease,
        box-shadow .34s ease;
}


.tml-articles-card::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 3px;

    opacity: 0;

    background:
        linear-gradient(
            90deg,
            var(--articles-gold-dark),
            var(--articles-gold-light)
        );

    transition:
        opacity .3s ease;
}


.tml-articles-card:hover {
    transform:
        translateY(-7px);

    border-color:
        rgba(199, 154, 72, .3);

    box-shadow:
        0 25px 58px
        rgba(16, 28, 41, .09);
}


.tml-articles-card:hover::after {
    opacity: 1;
}


/* =========================================================
   CARD IMAGE
========================================================= */

.tml-articles-card-image {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background:
        #ebe7df;
}


.tml-articles-card-image::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(10, 20, 31, .18)
        );

    opacity: .55;

    transition:
        opacity .3s ease;
}


.tml-articles-card:hover
.tml-articles-card-image::after {
    opacity: .76;
}


.tml-articles-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .6s
        cubic-bezier(.2, .7, .2, 1);
}


.tml-articles-card:hover
.tml-articles-card-image img {
    transform:
        scale(1.045);
}


/* floating category */

.tml-articles-card-category {
    position: absolute;

    left: 16px;
    bottom: 15px;

    z-index: 3;

    display: inline-flex;

    align-items: center;

    min-height: 27px;

    padding:
        0 11px;

    border: 1px solid rgba(74, 222, 128, 0.65);
    border-radius: 999px;

    color: #dcfce7;
    background: rgba(22, 101, 52, 0.8);

    box-shadow: 0 0 14px rgba(34, 197, 94, 0.2);

    backdrop-filter:
        blur(8px);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .07em;

    text-transform: uppercase;
}


/* image corner arrow */

.tml-articles-image-arrow {
    position: absolute;

    right: 15px;
    top: 15px;

    z-index: 3;

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255, 255, 255, .27);

    border-radius: 50%;

    color: #fff;

    background:
        rgba(16, 28, 41, .48);

    backdrop-filter:
        blur(7px);

    opacity: 0;

    transform:
        translateY(-5px);

    transition:
        opacity .28s ease,
        transform .28s ease,
        background .28s ease;
}


.tml-articles-card:hover
.tml-articles-image-arrow {
    opacity: 1;

    transform:
        translateY(0);
}


.tml-articles-image-arrow:hover {
    background:
        var(--articles-gold-dark);
}


.tml-articles-image-arrow svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   CARD BODY
========================================================= */

.tml-articles-card-body {
    flex: 1;

    display: flex;

    flex-direction: column;

    padding:
        20px 20px 19px;
}

/* meta */

.tml-articles-card-meta {
    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 9px;

    color:
        var(--articles-muted);

    font-size: 10px;
}


.tml-articles-card-meta time,
.tml-articles-card-read-time {
    display: inline-flex;

    align-items: center;

    gap: 6px;
}


.tml-articles-card-meta svg {
    width: 14px;
    height: 14px;

    fill: none;

    stroke:
        var(--articles-gold-dark);

    stroke-width: 1.5;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* title */

.tml-articles-card h3 {
    margin:
        14px 0 0;

    font-family:
        Georgia,
        serif;

    font-size: 22px;

    font-weight: 500;

    line-height: 1.2;

    letter-spacing: -.012em;
}


.tml-articles-card h3 a {
    color:
        var(--articles-navy);

    text-decoration: none;

    transition:
        color .25s ease;
}


.tml-articles-card h3 a:hover {
    color:
        var(--articles-gold-dark);
}


/* author */

.tml-articles-card-author {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 15px;

    color:
        var(--articles-muted);

    font-size: 10px;
}


.tml-articles-card-author-icon {
    width: 28px;
    height: 28px;

    flex: 0 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color:
        var(--articles-gold-dark);

    background:
        rgba(199, 154, 72, .1);
}


.tml-articles-card-author-icon svg {
    width: 14px;
    height: 14px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.55;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.tml-articles-card-author strong {
    color:
        var(--articles-navy);

    font-weight: 700;
}


/* excerpt */

.tml-articles-card-excerpt {
    margin:
        15px 0 0;

    color:
        var(--articles-muted);

    font-size: 12.5px;

    line-height: 1.68;
}


/* card footer */

.tml-articles-card-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: auto;

    padding-top: 20px;
}


.tml-articles-card-read {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color:
        var(--articles-gold-dark);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .045em;

    text-decoration: none;

    text-transform: uppercase;
}


.tml-articles-card-read span {
    transition:
        transform .25s ease;
}


.tml-articles-card-read:hover span {
    transform:
        translateX(4px);
}


.tml-articles-card-decoration {
    width: 31px;
    height: 31px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(--articles-border);

    border-radius: 50%;

    color:
        rgba(16, 28, 41, .42);

    background:
        var(--articles-paper);

    transition:
        color .25s ease,
        border-color .25s ease,
        background .25s ease;
}


.tml-articles-card:hover
.tml-articles-card-decoration {
    color: #fff;

    border-color:
        var(--articles-navy);

    background:
        var(--articles-navy);
}


.tml-articles-card-decoration svg {
    width: 15px;
    height: 15px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.5;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   PAGINATION
========================================================= */

.tml-articles-pagination {
    margin-top: 58px;
}


.tml-articles-pagination
.navigation.pagination {
    margin: 0;
}


.tml-articles-pagination
.nav-links {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;
}


.tml-articles-pagination
.page-numbers {
    min-width: 40px;
    height: 40px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        0 13px;

    border:
        1px solid
        var(--articles-border);

    border-radius: 8px;

    color:
        var(--articles-navy);

    background: #fff;

    font-size: 10px;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform .25s ease,
        color .25s ease,
        border-color .25s ease,
        background .25s ease;
}


.tml-articles-pagination
.page-numbers:hover {
    transform:
        translateY(-2px);

    color: #fff;

    border-color:
        var(--articles-navy);

    background:
        var(--articles-navy);
}


.tml-articles-pagination
.page-numbers.current {
    color:
        var(--articles-navy);

    border-color:
        var(--articles-gold);

    background:
        var(--articles-gold);
}


.tml-articles-pagination
.prev,
.tml-articles-pagination
.next {
    padding:
        0 16px;
}


/* =========================================================
   EMPTY
========================================================= */

.tml-articles-empty {
    padding:
        100px 0;

    background:
        var(--articles-cream);
}


.tml-articles-empty-inner {
    max-width: 700px;

    padding: 44px;

    border:
        1px solid
        var(--articles-border);

    border-radius: 18px;

    background: #fff;
}


.tml-articles-empty-inner h2 {
    margin:
        11px 0 0;

    color:
        var(--articles-navy);

    font-family:
        Georgia,
        serif;

    font-size: 38px;

    font-weight: 500;
}


.tml-articles-empty-inner p {
    margin:
        13px 0 0;

    color:
        var(--articles-muted);

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   REVEAL
========================================================= */

.tml-articles-reveal {
    opacity: 0;

    transform:
        translateY(20px);

    transition:
        opacity .65s ease,
        transform .65s
        cubic-bezier(.2, .7, .2, 1);
}


.tml-articles-reveal.is-visible {
    opacity: 1;

    transform: none;
}


/* =========================================================
   1100
========================================================= */

@media (max-width: 1100px) {

    .tml-articles-featured-card {
        grid-template-columns:
            1fr 1fr;
    }


    .tml-articles-featured-content {
        padding:
            27px 28px;
    }


    .tml-articles-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

    .tml-articles-hero {
        min-height: 255px;
    }


    .tml-articles-intro-grid {
        grid-template-columns: 1fr;

        gap: 21px;
    }


    .tml-articles-featured-card {
        grid-template-columns: 1fr;

        height: auto;
        min-height: auto;
    }


    .tml-articles-featured-image {
        height: auto;
        min-height: 0;

        aspect-ratio: 16 / 9;
    }


    .tml-articles-featured-content {
        padding:
            31px 29px;
    }


    .tml-articles-listing,
    .tml-articles-listing-paged {
        padding:
            78px 0 88px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .tml-articles-hero {
        min-height: 215px;

        background-position:
            center center;
    }


    .tml-articles-hero-overlay {
        background:
            rgba(10, 21, 33, .57);
    }


    .tml-articles-hero-content h1 {
        font-size: 42px;
    }


    .tml-articles-hero-content p {
        font-size: 12px;
    }


    .tml-articles-intro {
        padding:
            62px 0 40px;
    }


    .tml-articles-intro-grid h2,
    .tml-articles-listing-head h2 {
        font-size: 36px;
    }


    .tml-articles-featured {
        padding:
            18px 0 65px;
    }


    .tml-articles-featured-card {
        border-radius: 17px;
    }


    .tml-articles-featured-content {
        padding:
            25px 20px;
    }


    .tml-articles-featured-content h2 {
        font-size: 29px;
    }


    .tml-articles-featured-footer {
        align-items: flex-start;

        flex-direction: column;
    }


    .tml-articles-listing,
    .tml-articles-listing-paged {
        padding:
            65px 0 74px;
    }


    .tml-articles-listing-head {
        align-items: flex-start;

        margin-bottom: 31px;
    }


    .tml-articles-page-indicator {
        display: none;
    }


    .tml-articles-grid {
        grid-template-columns: 1fr;

        gap: 19px;
    }


    .tml-articles-card h3 {
        font-size: 22px;
    }


    .tml-articles-card-body {
        padding:
            19px 18px 18px;
    }


    .tml-articles-pagination {
        margin-top: 43px;
    }


    .tml-articles-pagination
    .page-numbers {
        min-width: 36px;
        height: 36px;

        padding:
            0 10px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .tml-articles-hero {
        min-height: 200px;
    }


    .tml-articles-hero-content h1 {
        font-size: 38px;
    }


    .tml-articles-featured-content h2 {
        font-size: 27px;
    }


    .tml-articles-card-image {
        aspect-ratio:
            16 / 10.5;
    }


    .tml-articles-card-author {
        font-size: 8.5px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .tml-articles-reveal {
        opacity: 1;

        transform: none;

        transition: none;
    }


    .tml-articles-card,
    .tml-articles-card-image img,
    .tml-articles-featured-card,
    .tml-articles-featured-image img,
    .tml-articles-image-arrow,
    .tml-articles-card-read span,
    .tml-articles-read-link span {
        transition: none;
    }

}