/* single-post: existing theme styles, loaded by page type. */
.single-post-page {
    --post-red: #9b1c2b;
    --post-red-dark: #74131f;
    --post-red-soft: #fff3f4;
    --post-gold: #e6a62f;
    --post-gold-soft: #fff9ec;
    --post-green: #2f7d47;
    --post-green-soft: #f0f8f2;
    --post-ink: #292522;
    --post-muted: #6f6964;
    --post-line: #e9e3dd;
    --post-surface: #ffffff;
    --post-bg: #fbfaf7;
    direction: rtl;
    color: var(--post-ink);
    background: var(--post-bg)
}

.single-post-page *,
.single-post-page *::before,
.single-post-page *::after {
    box-sizing: border-box
}

.single-post-page a {
    text-decoration: none
}

.single-post-page img,
.single-post-page video,
.single-post-page iframe {
    max-width: 100%
}

.single-shell {
    width: min(calc(100% - 40px), 1240px);
    margin-inline: auto
}

.single-hero {
    position: relative;
    padding-block: clamp(24px, 4vw, 56px) clamp(40px, 5vw, 72px);
    overflow: hidden;
    background: var(--post-surface);
    border-bottom: 1px solid var(--post-line)
}

.single-hero::before,
.single-hero::after {
    position: absolute;
    width: 280px;
    height: 280px;
    pointer-events: none;
    content: "";
    border: 1px solid rgba(47, 125, 71, 0.07);
    border-radius: 48% 52% 44% 56%
}

.single-hero::before {
    top: -175px;
    right: -120px;
    transform: rotate(24deg)
}

.single-hero::after {
    bottom: -200px;
    left: -110px;
    border-color: rgba(155, 28, 43, 0.06);
    transform: rotate(-18deg)
}

.single-breadcrumbs {
    position: relative;
    z-index: 1;
    margin-bottom: clamp(24px, 3vw, 42px);
    color: var(--post-muted);
    font-size: 0.82rem;
    line-height: 1.8
}

.single-breadcrumbs ol {
    display: flex;
    min-width: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    list-style: none
}

.single-breadcrumbs li {
    display: flex;
    min-width: 0;
    align-items: center
}

.single-breadcrumbs li+li::before {
    margin-inline: 0.65rem;
    color: #b1aaa4;
    content: "/"
}

.single-breadcrumbs li:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.single-breadcrumbs a {
    color: inherit;
    transition: color 160ms ease
}

.single-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.94fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center
}

.single-hero__content,
.single-hero__media {
    min-width: 0
}

.single-hero__category {
    display: inline-flex;
    min-height: 34px;
    padding: 0.35rem 0.85rem;
    align-items: center;
    color: var(--post-green);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
    background: var(--post-green-soft);
    border: 1px solid rgba(47, 125, 71, 0.18);
    border-radius: 999px
}

.single-hero__title {
    margin: 1rem 0 0;
    color: var(--post-ink);
    font-size: clamp(2rem, 3.1vw, 3.15rem);
    font-weight: 800;
    line-height: 1.48;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere
}

.single-hero__lead {
    max-width: 680px;
    margin: 1.15rem 0 0;
    color: var(--post-muted);
    font-size: clamp(0.98rem, 1.1vw, 1.08rem);
    line-height: 2
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.25rem;
    margin-top: 1.35rem;
    color: var(--post-muted);
    font-size: 0.83rem
}

.single-meta__item {
    display: inline-flex;
    min-height: 28px;
    gap: 0.4rem;
    align-items: center;
    white-space: nowrap
}

.single-meta__item .mdi {
    color: var(--post-green);
    font-size: 1.15rem
}

.single-hero__media {
    position: relative;
    aspect-ratio: 4/3;
    margin: 0;
    overflow: hidden;
    background: #eee9e3;
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(55, 37, 31, 0.13)
}

.single-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover
}

.single-hero__placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 68% 34%, rgba(47, 125, 71, 0.2)0 7%, transparent 7.5%), radial-gradient(circle at 42% 58%, rgba(155, 28, 43, 0.13)0 9%, transparent 9.5%), #f2eee8
}

.single-post-main {
    padding-block: clamp(42px, 6vw, 80px)
}

.single-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 860px);
    justify-content: center
}

.single-post-layout--with-toc {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: clamp(28px, 4vw, 56px);
    align-items: start
}

.single-article {
    min-width: 0;
    padding: clamp(24px, 4vw, 46px);
    background: var(--post-surface);
    border: 1px solid var(--post-line);
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(45, 34, 29, 0.055)
}

.single-sidebar {
    position: sticky;
    top: 110px;
    min-width: 0
}

.article-toc {
    overflow: hidden;
    background: var(--post-surface);
    border: 1px solid var(--post-line);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(45, 34, 29, 0.05)
}

.article-toc summary {
    position: relative;
    display: flex;
    min-height: 56px;
    padding: 0.85rem 1.15rem;
    align-items: center;
    justify-content: space-between;
    color: var(--post-ink);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    user-select: none
}

.article-toc summary::-webkit-details-marker {
    display: none
}

.article-toc summary::after {
    width: 9px;
    height: 9px;
    margin-right: 0.75rem;
    content: "";
    border-right: 2px solid var(--post-red);
    border-bottom: 2px solid var(--post-red);
    transform: rotate(45deg);
    transition: transform 160ms ease
}

.article-toc[open] summary::after {
    transform: rotate(225deg)
}

.article-toc nav {
    padding: 0 1.15rem 1.1rem;
    border-top: 1px solid var(--post-line)
}

.article-toc ol {
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: toc
}

.article-toc li {
    position: relative;
    padding-right: 1.5rem;
    margin-top: 0.55rem;
    counter-increment: toc
}

.article-toc li::before {
    position: absolute;
    top: 0.5rem;
    right: 0;
    color: var(--post-gold);
    font-size: 0.72rem;
    font-weight: 800;
    content: counter(toc, decimal-leading-zero)
}

.article-toc__level-3 {
    margin-right: 0.7rem
}

.article-toc a {
    display: block;
    padding: 0.35rem 0;
    color: var(--post-muted);
    font-size: 0.84rem;
    line-height: 1.75;
    transition: color 160ms ease
}

.recipe-panel {
    padding: clamp(18px, 3vw, 30px);
    margin-bottom: clamp(32px, 5vw, 52px);
    background: var(--post-gold-soft);
    border: 1px solid rgba(230, 166, 47, 0.34);
    border-radius: 20px
}

.recipe-panel__header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem
}

.recipe-panel__header h2 {
    margin: 0.2rem 0 0;
    color: var(--post-ink);
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    line-height: 1.5
}

.recipe-panel__header>.mdi {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    color: var(--post-red);
    font-size: 1.55rem;
    background: var(--post-surface);
    border: 1px solid rgba(155, 28, 43, 0.12);
    border-radius: 50%;
    place-items: center
}

.recipe-panel__eyebrow {
    color: var(--post-red);
    font-size: 0.78rem;
    font-weight: 700
}

.recipe-group+.recipe-group {
    padding-top: 1.4rem;
    margin-top: 1.4rem;
    border-top: 1px solid rgba(155, 28, 43, 0.11)
}

.recipe-group h3 {
    margin: 0 0 0.9rem;
    color: var(--post-red-dark);
    font-size: 1rem;
    line-height: 1.7
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none
}

.recipe-item {
    display: flex;
    min-width: 0;
    min-height: 82px;
    gap: 0.8rem;
    padding: 0.65rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(230, 166, 47, 0.24);
    border-radius: 14px
}

.recipe-item__image {
    display: block;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    margin: 0;
    object-fit: cover;
    border-radius: 11px
}

.recipe-item__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.2rem
}

.recipe-item__content strong {
    color: var(--post-ink);
    font-size: 0.9rem;
    line-height: 1.7;
    overflow-wrap: anywhere
}

.recipe-item__content span {
    color: var(--post-muted);
    font-size: 0.8rem;
    line-height: 1.65;
    overflow-wrap: anywhere
}

.single-article__content {
    color: #393430;
    font-size: clamp(1rem, 0.35vw + 0.93rem, 1.125rem);
    line-height: 2.05;
    overflow-wrap: break-word
}

.single-article__content>:first-child {
    margin-top: 0
}

.single-article__content>:last-child {
    margin-bottom: 0
}

.single-article__content p {
    margin: 0 0 1.35em
}

.single-article__content h2,
.single-article__content h3,
.single-article__content h4 {
    color: var(--post-red);
    font-weight: 800;
    overflow-wrap: anywhere;
    scroll-margin-top: 120px
}

.single-article__content h2 {
    position: relative;
    padding-right: 1rem;
    margin: 2.2em 0 0.75em;
    font-size: clamp(1.35rem, 2vw, 1.72rem);
    line-height: 1.65
}

.single-article__content h2::before {
    position: absolute;
    top: 0.45em;
    right: 0;
    width: 4px;
    height: 1.1em;
    content: "";
    background: var(--post-gold);
    border-radius: 999px
}

.single-article__content h3 {
    margin: 1.9em 0 0.65em;
    font-size: clamp(1.14rem, 1.5vw, 1.36rem);
    line-height: 1.75
}

.single-article__content h4 {
    margin: 1.6em 0 0.6em;
    font-size: 1.08rem;
    line-height: 1.8
}

.single-article__content a {
    color: var(--post-green);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(47, 125, 71, 0.35);
    text-underline-offset: 0.22em
}

.single-article__content ul,
.single-article__content ol {
    padding-right: 1.4rem;
    margin: 0 0 1.5em
}

.single-article__content li {
    padding-right: 0.25rem;
    margin-bottom: 0.45rem
}

.single-article__content li::marker {
    color: var(--post-red);
    font-weight: 800
}

.single-article__content blockquote {
    padding: 1.15rem 1.25rem;
    margin: 1.8rem 0;
    color: #4d453f;
    background: var(--post-gold-soft);
    border: 0;
    border-right: 4px solid var(--post-gold);
    border-radius: 14px
}

.single-article__content blockquote p:last-child {
    margin-bottom: 0
}

.single-article__content figure,
.single-article__content .wp-caption {
    max-width: 100%;
    margin: 2rem auto
}

.single-article__content figure img,
.single-article__content>img,
.single-article__content p>img,
.single-article__content .wp-caption img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    border-radius: 18px
}

.single-article__content figcaption,
.single-article__content .wp-caption-text {
    margin-top: 0.65rem;
    color: var(--post-muted);
    font-size: 0.8rem;
    line-height: 1.8;
    text-align: center
}

.single-article__content table {
    width: 100%;
    margin: 1.8rem 0;
    overflow: hidden;
    font-size: 0.9em;
    border-spacing: 0;
    border-collapse: separate;
    border: 1px solid var(--post-line);
    border-radius: 14px
}

.single-article__content th,
.single-article__content td {
    padding: 0.8rem 0.9rem;
    text-align: right;
    border-bottom: 1px solid var(--post-line)
}

.single-article__content th {
    color: var(--post-red-dark);
    background: var(--post-red-soft)
}

.single-article__content tr:last-child td {
    border-bottom: 0
}

.single-article__content pre {
    max-width: 100%;
    padding: 1rem;
    overflow: auto;
    direction: ltr;
    background: #272421;
    border-radius: 12px
}

.single-article__content iframe,
.single-article__content video {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 18px
}

.single-article__content .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 18px
}

.single-article__content .wp-block-embed__wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%
}

.single-article__content .alignleft,
.single-article__content .alignright {
    max-width: 48%
}

.single-article__content .alignleft {
    float: left;
    margin: 0.5rem 1.2rem 1rem 0
}

.single-article__content .alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.2rem
}

.single-article__footer {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 1.6rem;
    margin-top: clamp(34px, 5vw, 56px);
    border-top: 1px solid var(--post-line)
}

.single-tags,
.single-share {
    min-width: 0
}

.single-tags__title,
.single-share__title {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--post-ink);
    font-size: 0.82rem;
    font-weight: 800
}

.single-tags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0;
    margin: 0;
    list-style: none
}

.single-tags a {
    display: inline-flex;
    min-height: 34px;
    padding: 0.3rem 0.75rem;
    align-items: center;
    color: var(--post-red-dark);
    font-size: 0.76rem;
    background: var(--post-red-soft);
    border: 1px solid rgba(155, 28, 43, 0.12);
    border-radius: 999px
}

.single-share__links {
    display: flex;
    gap: 0.5rem
}

.single-share__links a {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    color: var(--post-red);
    font-size: 1.25rem;
    background: var(--post-surface);
    border: 1px solid var(--post-line);
    border-radius: 50%;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
    place-items: center
}

.single-related {
    padding-top: clamp(48px, 7vw, 84px)
}

.single-related__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.35rem
}

.single-related__header span {
    color: var(--post-green);
    font-size: 0.8rem;
    font-weight: 700
}

.single-related__header h2 {
    margin: 0.2rem 0 0;
    color: var(--post-ink);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.5
}

.single-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem
}

.related-card {
    min-width: 0;
    overflow: hidden;
    background: var(--post-surface);
    border: 1px solid var(--post-line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(45, 34, 29, 0.045);
    transition: transform 180ms ease, box-shadow 180ms ease
}

.related-card__media {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #eee9e3
}

.related-card__image,
.related-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease
}

.related-card__placeholder {
    background: linear-gradient(135deg, #f3eee9, #e8e1da)
}

.related-card__content {
    padding: 1rem 1.05rem 1.15rem
}

.related-card__content time {
    color: var(--post-green);
    font-size: 0.75rem
}

.related-card__content h3 {
    margin: 0.45rem 0 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.85
}

.related-card__content h3 a {
    color: var(--post-ink);
    transition: color 160ms ease
}

.single-post-page a:focus-visible,
.single-post-page summary:focus-visible {
    outline: 3px solid rgba(230, 166, 47, 0.72);
    outline-offset: 3px
}

@media (hover:hover) {

    .single-breadcrumbs a:hover,
    .article-toc a:hover,
    .related-card__content h3 a:hover {
        color: var(--post-red)
    }

    .single-share__links a:hover {
        color: #fff;
        background: var(--post-red);
        border-color: var(--post-red);
        transform: translateY(-2px)
    }

    .related-card:hover {
        box-shadow: 0 16px 38px rgba(45, 34, 29, 0.09);
        transform: translateY(-4px)
    }

    .related-card:hover .related-card__image {
        transform: scale(1.035)
    }
}

@media (max-width:1023.98px) {

    .single-hero__grid,
    .single-post-layout--with-toc {
        grid-template-columns: minmax(0, 1fr)
    }

    .single-hero__grid {
        gap: 28px
    }

    .single-hero__media {
        max-width: 820px;
        aspect-ratio: 16/9
    }

    .single-post-layout--with-toc {
        gap: 22px
    }

    .single-sidebar {
        position: static;
        order: -1
    }

    .article-toc nav {
        padding-inline: 1.25rem
    }

    .article-toc ol {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1.5rem
    }

    .single-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media (max-width:767.98px) {
    .single-shell {
        width: min(calc(100% - 32px), 1240px)
    }

    .single-hero {
        padding-block: 20px 36px
    }

    .single-hero::before,
    .single-hero::after {
        display: none
    }

    .single-breadcrumbs {
        margin-bottom: 22px;
        font-size: 0.76rem
    }

    .single-breadcrumbs li:last-child {
        display: none
    }

    .single-hero__category {
        min-height: 32px;
        font-size: 0.76rem
    }

    .single-hero__title {
        margin-top: 0.8rem;
        font-size: clamp(1.62rem, 7.2vw, 2.1rem);
        line-height: 1.55
    }

    .single-hero__lead {
        margin-top: 0.85rem;
        font-size: 0.95rem;
        line-height: 1.95
    }

    .single-meta {
        gap: 0.45rem 0.9rem;
        margin-top: 1rem;
        font-size: 0.76rem
    }

    .single-hero__media {
        aspect-ratio: 16/10;
        border-radius: 18px;
        box-shadow: 0 12px 30px rgba(55, 37, 31, 0.1)
    }

    .single-post-main {
        padding-block: 28px 48px
    }

    .single-article {
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none
    }

    .article-toc {
        border-radius: 14px
    }

    .article-toc summary {
        min-height: 52px;
        padding-inline: 1rem
    }

    .article-toc nav {
        padding-inline: 1rem
    }

    .article-toc ol {
        grid-template-columns: minmax(0, 1fr)
    }

    .article-toc a {
        min-height: 42px;
        padding-block: 0.5rem;
        font-size: 0.85rem
    }

    .recipe-panel {
        padding: 18px;
        margin-bottom: 32px;
        border-radius: 16px
    }

    .recipe-grid {
        grid-template-columns: minmax(0, 1fr)
    }

    .recipe-item {
        min-height: 78px
    }

    .single-article__content {
        font-size: 1rem;
        line-height: 2.05
    }

    .single-article__content h2 {
        margin-top: 1.9em;
        font-size: clamp(1.25rem, 5.4vw, 1.5rem);
        line-height: 1.7
    }

    .single-article__content h3 {
        font-size: clamp(1.1rem, 4.8vw, 1.28rem)
    }

    .single-article__content figure,
    .single-article__content .wp-caption {
        margin-block: 1.5rem
    }

    .single-article__content figure img,
    .single-article__content>img,
    .single-article__content p>img,
    .single-article__content .wp-caption img,
    .single-article__content iframe,
    .single-article__content video,
    .single-article__content .wp-block-embed__wrapper {
        border-radius: 14px
    }

    .single-article__content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch
    }

    .single-article__content .alignleft,
    .single-article__content .alignright {
        float: none;
        width: auto;
        max-width: 100%;
        margin: 1.5rem auto
    }

    .single-article__footer {
        flex-direction: column;
        gap: 1.3rem
    }

    .single-share,
    .single-tags {
        width: 100%
    }

    .single-share__links {
        flex-wrap: wrap
    }

    .single-related {
        padding-top: 48px
    }
}

@media (max-width:575.98px) {
    .single-related__grid {
        grid-template-columns: minmax(0, 1fr)
    }

    .related-card {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        min-height: 118px;
        border-radius: 15px
    }

    .related-card__media {
        height: 100%;
        aspect-ratio: auto
    }

    .related-card__content {
        padding: 0.85rem;
        align-self: center
    }

    .related-card__content h3 {
        display: -webkit-box;
        overflow: hidden;
        font-size: 0.92rem;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3
    }
}

@media (max-width:379.98px) {
    .single-shell {
        width: min(calc(100% - 24px), 1240px)
    }

    .single-meta__item {
        white-space: normal
    }

    .recipe-panel {
        padding: 14px
    }

    .recipe-panel__header>.mdi {
        width: 42px;
        height: 42px;
        flex-basis: 42px
    }

    .recipe-item__image {
        width: 54px;
        height: 54px;
        flex-basis: 54px
    }

    .related-card {
        grid-template-columns: 102px minmax(0, 1fr)
    }
}

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

    .single-post-page *,
    .single-post-page *::before,
    .single-post-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important
    }
}

@media print {

    .single-sidebar,
    .single-share,
    .single-related,
    .single-breadcrumbs {
        display: none !important
    }

    .single-hero,
    .single-post-page,
    .single-post-main,
    .single-article {
        padding: 0;
        color: #000;
        background: #fff;
        border: 0;
        box-shadow: none
    }

    .single-hero__grid,
    .single-post-layout,
    .single-post-layout--with-toc {
        display: block
    }

    .single-hero__media {
        max-width: 620px;
        margin: 1rem 0;
        box-shadow: none
    }
}