/**
 * Universal standard WordPress post template.
 */

body.single-post .site-header[data-site-header] {
    background: linear-gradient(110deg, #391214 0%, #100b0b 100%);
    border-bottom-color: rgb(242 238 227 / 14%);
}

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

.neciunasnt-single-post {
    min-height: 100vh;
    padding: 146px 0 120px;
    color: var(--color-burgundy, #391214);
    background-color: var(--color-cream, #f2eee3);
    font-family: var(--font-primary, "TT Firs Neue", Arial, sans-serif);
}

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

.neciunasnt-single-post__header {
    display: grid;
    max-width: 920px;
    justify-items: center;
    gap: 12px;
    margin-inline: auto;
    text-align: center;
}

.neciunasnt-single-post__category,
.neciunasnt-single-post__title,
.neciunasnt-single-post__date {
    margin: 0;
    color: var(--color-burgundy, #391214);
}

.neciunasnt-single-post__category {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    line-height: 1.4;
    text-transform: uppercase;
}

.neciunasnt-single-post__title {
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.12;
    text-wrap: balance;
}

.neciunasnt-single-post__date {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.neciunasnt-single-post__featured-image {
    width: 100%;
    aspect-ratio: 1240 / 444;
    overflow: hidden;
    margin: 48px 0 0;
    border-radius: 10px;
    background-color: rgb(142 127 115 / 14%);
}

.neciunasnt-single-post__featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.neciunasnt-single-post__content {
    width: min(100%, 820px);
    margin: 64px auto 0;
    color: var(--color-burgundy, #391214);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.neciunasnt-single-post__content > :first-child {
    margin-top: 0;
}

.neciunasnt-single-post__content > :last-child {
    margin-bottom: 0;
}

.neciunasnt-single-post__content p,
.neciunasnt-single-post__content ul,
.neciunasnt-single-post__content ol,
.neciunasnt-single-post__content blockquote,
.neciunasnt-single-post__content figure,
.neciunasnt-single-post__content table {
    margin-top: 0;
    margin-bottom: 24px;
}

.neciunasnt-single-post__content h2,
.neciunasnt-single-post__content h3,
.neciunasnt-single-post__content h4 {
    margin: 40px 0 16px;
    color: var(--color-burgundy, #391214);
    font-weight: 600;
    line-height: 1.45;
}

.neciunasnt-single-post__content h2 {
    font-size: 24px;
}

.neciunasnt-single-post__content h3 {
    font-size: 21px;
}

.neciunasnt-single-post__content h4 {
    font-size: 18px;
}

.neciunasnt-single-post__content ul,
.neciunasnt-single-post__content ol {
    padding-left: 1.5em;
}

.neciunasnt-single-post__content li + li {
    margin-top: 8px;
}

.neciunasnt-single-post__content a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.neciunasnt-single-post__content img,
.neciunasnt-single-post__content video,
.neciunasnt-single-post__content iframe {
    max-width: 100%;
}

.neciunasnt-single-post__content img {
    height: auto;
    border-radius: 8px;
}

.neciunasnt-single-post__content blockquote {
    padding: 4px 0 4px 24px;
    border-left: 2px solid currentColor;
    font-size: 1.08em;
}

.neciunasnt-single-post__content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.neciunasnt-single-post__content th,
.neciunasnt-single-post__content td {
    padding: 10px 12px;
    border: 1px solid rgb(57 18 20 / 28%);
    text-align: left;
}

.neciunasnt-single-post__page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.neciunasnt-single-post__back-wrap {
    display: flex;
    justify-content: center;
    margin-top: 64px;
}

.neciunasnt-single-post__back {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border: 1px solid var(--color-burgundy, #391214);
    border-radius: 24px;
    color: var(--color-burgundy, #391214);
    background-color: transparent;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease;
}

.neciunasnt-single-post__back:hover,
.neciunasnt-single-post__back:focus-visible {
    color: var(--color-cream, #f2eee3);
    background-color: var(--color-burgundy, #391214);
}

.neciunasnt-single-post__back:focus-visible,
.neciunasnt-single-post__content a:focus-visible {
    outline: 2px solid var(--color-burgundy, #391214);
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .neciunasnt-single-post {
        padding: 126px 0 72px;
    }

    .neciunasnt-single-post__article {
        width: min(calc(100% - 32px), 1240px);
    }

    .neciunasnt-single-post__title {
        font-size: clamp(30px, 9vw, 38px);
    }

    .neciunasnt-single-post__featured-image {
        aspect-ratio: 16 / 10;
        margin-top: 36px;
    }

    .neciunasnt-single-post__content {
        margin-top: 44px;
        font-size: 15px;
    }

    .neciunasnt-single-post__content h2 {
        font-size: 22px;
    }

    .neciunasnt-single-post__content h2,
    .neciunasnt-single-post__content h3,
    .neciunasnt-single-post__content h4 {
        margin-top: 32px;
    }

    .neciunasnt-single-post__back-wrap {
        margin-top: 48px;
    }

    .neciunasnt-single-post__back {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .neciunasnt-single-post__back {
        transition: none;
    }
}
