/* =========================================================
   THULTHUL — RECIPE DETAIL
========================================================= */

.tt-recipe-detail {
    background: #070708;
    color: #f5f5f7;
}

.tt-recipe-detail .tt-container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}


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

.tt-recipe-detail-hero {
    padding: 30px 0 42px;

    border-bottom: 1px solid rgba(255,255,255,.07);

    background:
        radial-gradient(
            circle at 78% 20%,
            rgba(79,70,255,.14),
            transparent 35%
        ),
        #070708;
}


.tt-recipe-back {
    display: inline-block;

    margin-bottom: 22px;

    color: #777781;

    font-size: 10px;

    font-weight: 700;

    text-decoration: none;

    transition: color .2s ease;
}

.tt-recipe-back:hover {
    color: #ffffff;
}


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

.tt-recipe-hero-grid {
    display: grid;

    grid-template-columns:
        300px
        minmax(0,1fr);

    align-items: center;

    gap: 48px;
}


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

.tt-recipe-detail-image {
    position: relative;

    width: 100%;
    height: 175px;

    overflow: hidden;

    background: #151518;

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


.tt-recipe-detail-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .35s ease;
}


.tt-recipe-detail-image:hover img {
    transform: scale(1.03);
}


.tt-recipe-image-placeholder {
    display: flex;

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

    width: 100%;
    height: 100%;

    color: #6e6e77;

    background:
        radial-gradient(
            circle,
            rgba(79,70,255,.16),
            transparent 55%
        );

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}


.tt-recipe-detail-featured {
    position: absolute;

    top: 10px;
    left: 10px;

    padding: 6px 8px;

    color: #ffffff;

    background: #5148ff;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1px;
}


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

.tt-recipe-detail-info {
    min-width: 0;
}


.tt-recipe-detail-tags {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 10px;
}


.tt-recipe-detail-tags span {
    color: #8d85ff;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.tt-recipe-detail-tags span + span {
    padding-left: 9px;

    border-left: 1px solid #36363c;
}


.tt-recipe-detail-info h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(34px, 4vw, 54px);

    line-height: 1;

    letter-spacing: -2px;
}


.tt-recipe-description {
    max-width: 680px;

    margin: 14px 0 20px;

    color: #85858e;

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   RECIPE META
========================================================= */

.tt-recipe-meta {
    display: flex;

    align-items: stretch;

    width: fit-content;

    border-top: 1px solid rgba(255,255,255,.08);

    border-bottom: 1px solid rgba(255,255,255,.08);
}


.tt-recipe-meta > div {
    min-width: 105px;

    padding: 11px 16px;

    border-right: 1px solid rgba(255,255,255,.08);
}


.tt-recipe-meta > div:first-child {
    padding-left: 0;
}


.tt-recipe-meta > div:last-child {
    border-right: 0;
}


.tt-recipe-meta span {
    display: block;

    margin-bottom: 4px;

    color: #606069;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1px;
}


.tt-recipe-meta strong {
    color: #dddddf;

    font-size: 11px;
}


/* =========================================================
   NUTRITION
========================================================= */

.tt-recipe-nutrition {
    padding: 55px 0 65px;
}


.tt-recipe-section-heading {
    margin-bottom: 22px;
}


.tt-recipe-section-heading > span {
    display: block;

    margin-bottom: 7px;

    color: #8178ff;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.tt-recipe-section-heading h2 {
    margin: 0;

    color: #ffffff;

    font-size: 31px;

    line-height: 1.05;

    letter-spacing: -1.3px;
}


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

.tt-recipe-macro-grid {
    display: grid;

    grid-template-columns:
        repeat(4,1fr);

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


.tt-recipe-macro {
    min-height: 125px;

    padding: 20px;

    background: #111113;

    border-right: 1px solid rgba(255,255,255,.08);
}


.tt-recipe-macro:last-child {
    border-right: 0;
}


.tt-recipe-macro > span {
    display: block;

    color: #676770;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.1px;
}


.tt-recipe-macro strong {
    display: block;

    margin-top: 15px;

    color: #ffffff;

    font-size: 32px;

    line-height: 1;

    letter-spacing: -1px;
}


.tt-recipe-macro small {
    display: block;

    margin-top: 5px;

    color: #696971;

    font-size: 8px;

    font-weight: 800;
}


.tt-recipe-macro.calories {
    background:
        linear-gradient(
            135deg,
            rgba(79,70,255,.18),
            #111113 65%
        );
}


.tt-recipe-macro.calories > span {
    color: #9189ff;
}


/* =========================================================
   CONTENT
========================================================= */

.tt-recipe-content {
    padding: 20px 0 75px;
}


.tt-recipe-content-grid {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        280px;

    gap: 50px;

    align-items: start;
}


/* =========================================================
   INGREDIENTS
========================================================= */

.tt-ingredients-list {
    border-top: 1px solid rgba(255,255,255,.08);
}


.tt-ingredient {
    display: flex;

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

    gap: 20px;

    padding: 16px 0;

    border-bottom: 1px solid rgba(255,255,255,.06);
}


.tt-ingredient > div {
    min-width: 0;
}


.tt-ingredient > div strong {
    display: block;

    color: #eeeeef;

    font-size: 13px;
}


.tt-ingredient > div span {
    display: block;

    margin-top: 4px;

    color: #66666e;

    font-size: 9px;
}


.tt-ingredient-quantity {
    flex-shrink: 0;

    color: #9189ff;

    font-size: 11px;

    font-weight: 700;
}


.tt-recipe-empty-small {
    padding: 25px 0;

    color: #66666e;

    font-size: 11px;
}


/* =========================================================
   SIDE INFO
========================================================= */

.tt-recipe-side-info {
    background: #111113;

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


.tt-recipe-side-info > div {
    padding: 17px 18px;

    border-bottom: 1px solid rgba(255,255,255,.07);
}


.tt-recipe-side-info > div:last-child {
    border-bottom: 0;
}


.tt-recipe-side-info span {
    display: block;

    margin-bottom: 5px;

    color: #606069;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1.1px;
}


.tt-recipe-side-info strong {
    color: #dddddf;

    font-size: 12px;
}


/* =========================================================
   INSTRUCTIONS
========================================================= */

.tt-recipe-instructions {
    padding: 65px 0 85px;

    border-top: 1px solid rgba(255,255,255,.07);
}


.tt-steps {
    max-width: 900px;

    border-top: 1px solid rgba(255,255,255,.08);
}


.tt-step {
    display: grid;

    grid-template-columns: 60px minmax(0,1fr);

    gap: 25px;

    padding: 24px 0;

    border-bottom: 1px solid rgba(255,255,255,.07);
}


.tt-step-number {
    color: #8178ff;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;
}


.tt-step-content {
    min-width: 0;
}


.tt-step-heading {
    display: flex;

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

    gap: 20px;
}


.tt-step-heading h3 {
    margin: 0;

    color: #ffffff;

    font-size: 17px;

    line-height: 1.2;
}


.tt-step-heading span {
    flex-shrink: 0;

    color: #66666e;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;
}


.tt-step-content p {
    max-width: 720px;

    margin: 8px 0 0;

    color: #808089;

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   RELATED RECIPES
========================================================= */

.tt-related-recipes {
    padding: 65px 0 90px;

    border-top: 1px solid rgba(255,255,255,.07);
}


.tt-related-recipe-grid {
    display: grid;

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

    gap: 12px;
}


.tt-related-recipe-card {
    position: relative;

    display: flex;

    min-width: 0;

    color: inherit;

    background: #111113;

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

    text-decoration: none;

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


.tt-related-recipe-card:hover {
    transform: translateY(-3px);

    border-color: rgba(79,70,255,.5);
}


.tt-related-recipe-image {
    width: 115px;
    min-width: 115px;

    min-height: 135px;

    overflow: hidden;

    background: #18181b;
}


.tt-related-recipe-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.tt-related-recipe-image span {
    display: flex;

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

    width: 100%;
    height: 100%;

    color: #66666e;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;
}


.tt-related-recipe-body {
    min-width: 0;

    padding: 17px 15px;
}


.tt-related-recipe-body > span {
    color: #8178ff;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1px;
}


.tt-related-recipe-body h3 {
    margin: 7px 0 16px;

    color: #ffffff;

    font-size: 14px;

    line-height: 1.2;
}


.tt-related-recipe-body div {
    display: flex;

    align-items: baseline;

    gap: 4px;

    flex-wrap: wrap;
}


.tt-related-recipe-body div strong {
    color: #dddddf;

    font-size: 10px;
}


.tt-related-recipe-body div small {
    margin-right: 6px;

    color: #5e5e66;

    font-size: 7px;

    font-weight: 800;
}


.tt-related-recipe-arrow {
    position: absolute;

    top: 10px;
    right: 10px;

    color: #8178ff;

    font-size: 12px;
}


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

@media (max-width: 900px) {

    .tt-recipe-hero-grid {
        grid-template-columns:
            230px
            minmax(0,1fr);

        gap: 30px;
    }

    .tt-recipe-detail-image {
        height: 145px;
    }

    .tt-recipe-detail-info h1 {
        font-size: 42px;
    }

    .tt-recipe-content-grid {
        grid-template-columns:
            minmax(0,1fr)
            230px;

        gap: 30px;
    }

    .tt-recipe-macro-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .tt-recipe-macro:nth-child(2) {
        border-right: 0;
    }

    .tt-recipe-macro:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .tt-related-recipe-grid {
        grid-template-columns:
            repeat(2,1fr);
    }
}


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

@media (max-width: 650px) {

    .tt-recipe-detail .tt-container {
        width: min(100% - 28px, 600px);
    }

    .tt-recipe-detail-hero {
        padding: 25px 0 35px;
    }

    .tt-recipe-back {
        margin-bottom: 18px;
    }

    .tt-recipe-hero-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .tt-recipe-detail-image {
        height: 180px;
    }

    .tt-recipe-detail-info h1 {
        font-size: 39px;

        letter-spacing: -1.5px;
    }

    .tt-recipe-meta {
        width: 100%;
    }

    .tt-recipe-meta > div {
        flex: 1;

        min-width: 0;

        padding: 11px 10px;
    }

    .tt-recipe-content-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .tt-recipe-macro-grid {
        grid-template-columns: 1fr;
    }

    .tt-recipe-macro {
        min-height: auto;

        border-right: 0;

        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .tt-recipe-macro:last-child {
        border-bottom: 0;
    }

    .tt-recipe-macro strong {
        font-size: 30px;
    }

    .tt-step {
        grid-template-columns: 40px minmax(0,1fr);

        gap: 15px;
    }

    .tt-step-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 7px;
    }

    .tt-related-recipe-grid {
        grid-template-columns: 1fr;
    }
}


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

@media (max-width: 420px) {

    .tt-recipe-detail .tt-container {
        width: calc(100% - 24px);
    }

    .tt-recipe-detail-image {
        height: 155px;
    }

    .tt-recipe-detail-info h1 {
        font-size: 34px;
    }

    .tt-recipe-meta > div {
        padding: 10px 7px;
    }

    .tt-recipe-meta strong {
        font-size: 10px;
    }

    .tt-ingredient > div strong {
        font-size: 12px;
    }

    .tt-ingredient-quantity {
        font-size: 10px;
    }
}