.page-wrapper,
.flex.flex-col.min-h-screen {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

.page-wrapper > main#maincontent,
.page-wrapper > main[role="main"],
.page-wrapper > .page-main,
main#maincontent,
main[role="main"],
.page-main,
.main.content {
    flex: 1 0 auto !important;
}

.page-footer,
footer {
    margin-top: auto !important;
}

.plf-blog {
    background: #fcf9f4;
    color: #1c1917;
    flex: 1 0 auto;
}

.plf-blog__inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 48px 32px 72px;
}

.plf-blog__hero {
    max-width: 760px;
    margin-bottom: 34px;
}

.plf-blog__eyebrow,
.plf-blog-card__meta,
.plf-blog-post__meta,
.plf-blog-post__author {
    color: #7b6d64;
    font-size: 14px;
}

.plf-blog__eyebrow {
    margin: 0 0 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.plf-blog h1,
.plf-blog h2,
.plf-blog h3 {
    font-family: Tinos, Georgia, serif;
    color: #1c1917;
}

.plf-blog__hero h1,
.plf-blog-post__header h1 {
    margin: 0;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.04;
}

.plf-blog__hero p {
    margin: 14px 0 0;
    max-width: 640px;
    color: #504440;
    font-size: 18px;
    line-height: 1.7;
}

.plf-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (min-width: 1440px) {
    .plf-blog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.plf-blog-card {
    overflow: hidden;
    border: 1px solid #e8e0d7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(43, 32, 27, .06);
}

.plf-blog-card__image {
    display: block;
    height: 180px;
    background: #f6f3ee;
}

.plf-blog-card__image img,
.plf-blog-post__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
}

.plf-blog-card__body {
    padding: 24px;
}

.plf-blog-card__meta,
.plf-blog-post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    margin-bottom: 12px;
}

.plf-blog-card__meta a,
.plf-blog-post__meta a,
.plf-blog-post__content a {
    color: #7b5649;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.plf-blog-card h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
}

.plf-blog-card h2 a {
    color: inherit;
    text-decoration: none;
}

.plf-blog-card h2 a:hover,
.plf-blog-card__link:hover,
.plf-blog-post__back:hover {
    color: #7b5649;
}

.plf-blog-card__excerpt {
    margin-top: 14px;
    color: #504440;
    font-size: 16px;
    line-height: 1.7;
}

.plf-blog-card__excerpt p {
    margin: 0;
}

.plf-blog-card__link,
.plf-blog-post__back {
    display: inline-flex;
    margin-top: 20px;
    color: #7b5649;
    font-weight: 700;
    text-decoration: none;
}

.plf-blog-pager {
    margin-top: 32px;
}

.plf-blog__empty {
    border: 1px solid #e8e0d7;
    border-radius: 8px;
    background: #fff;
    padding: 24px;
    color: #504440;
}

.plf-blog-post__inner {
    max-width: 1480px;
}

.plf-blog-post__layout {
    display: grid;
    grid-template-columns: minmax(0, 920px) 340px;
    gap: 56px;
    align-items: start;
    justify-content: space-between;
}

.plf-blog-post__main {
    min-width: 0;
    max-width: 920px;
}

.plf-blog-post__header {
    margin-bottom: 30px;
}

.plf-blog-post__back {
    margin: 0 0 22px;
}

.plf-blog-post__meta {
    margin-bottom: 14px;
}

.plf-blog-post__author {
    margin: 14px 0 0;
}

.plf-blog-post__image {
    overflow: hidden;
    margin: 0 0 34px;
    border-radius: 8px;
    background: #f6f3ee;
    aspect-ratio: 16 / 9;
}

.plf-blog-post__content {
    color: #352d2a;
    font-size: 18px;
    line-height: 1.8;
}

.plf-blog-post__content > *:first-child {
    margin-top: 0;
}

.plf-blog-post__content p,
.plf-blog-post__content ul,
.plf-blog-post__content ol,
.plf-blog-post__content blockquote {
    margin: 0 0 22px;
}

.plf-blog-post__content ul,
.plf-blog-post__content ol {
    padding-left: 1.35em;
}

.plf-blog-post__content ul {
    list-style: disc;
}

.plf-blog-post__content ol {
    list-style: decimal;
}

.plf-blog-post__content li {
    margin: 0 0 8px;
}

.plf-blog-post__content li > ul,
.plf-blog-post__content li > ol {
    margin: 8px 0 0;
}

.plf-blog-post__content h1,
.plf-blog-post__content h2,
.plf-blog-post__content h3 {
    margin: 34px 0 14px;
    line-height: 1.18;
}

.plf-blog-post__content h1 {
    font-size: 42px;
}

.plf-blog-post__content h2 {
    font-size: 34px;
}

.plf-blog-post__content h3 {
    font-size: 26px;
}

.plf-blog-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.plf-blog-post__content figure {
    margin: 30px 0;
}

.plf-blog-post__content figcaption {
    margin-top: 8px;
    color: #7b6d64;
    font-size: 14px;
    line-height: 1.5;
}

.plf-blog-post__content table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.5;
}

.plf-blog-post__content th,
.plf-blog-post__content td {
    border: 1px solid #e8e0d7;
    padding: 10px 12px;
    text-align: left;
}

.plf-blog-post__content th {
    background: #f6f3ee;
    font-weight: 700;
}

.plf-blog-post__content blockquote {
    border-left: 4px solid #d8c7bd;
    padding-left: 20px;
    color: #504440;
    font-family: Tinos, Georgia, serif;
    font-size: 22px;
}

.plf-blog-post__sidebar {
    position: sticky;
    top: 110px;
    border: 1px solid #e8e0d7;
    border-radius: 8px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(43, 32, 27, .05);
}

.plf-blog-post__sidebar h2 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.16;
}

.plf-blog-post__sidebar p {
    margin: 0;
    color: #504440;
    font-size: 15px;
    line-height: 1.6;
}

.plf-blog-post__related {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plf-blog-post__related li {
    border-bottom: 1px solid #eee7df;
    padding-bottom: 16px;
}

.plf-blog-post__related li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.plf-blog-post__related a {
    display: block;
    color: #1c1917;
    font-family: Tinos, Georgia, serif;
    font-size: 19px;
    line-height: 1.2;
    text-decoration: none;
}

.plf-blog-post__related a:hover,
.plf-blog-post__sidebar-link:hover {
    color: #7b5649;
}

.plf-blog-post__related span {
    display: block;
    margin-top: 7px;
    color: #7b6d64;
    font-size: 13px;
}

.plf-blog-post__sidebar-link {
    display: inline-flex;
    margin-top: 20px;
    color: #7b5649;
    font-weight: 700;
    text-decoration: none;
}

.plf-blog-comments {
    margin-top: 54px;
    padding-top: 36px;
    border-top: 1px solid #e8e0d7;
}

.plf-blog-comments__header h2,
.plf-blog-reply__header h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
}

.plf-blog-comments .comment-list {
    display: grid;
    gap: 18px;
    margin: 24px 0 36px;
    padding: 0;
    list-style: none;
}

.plf-blog-comments .comment-list.children {
    margin: 18px 0 0 32px;
}

.plf-blog-comments .comment-list-item-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 16px;
    border: 1px solid #e8e0d7;
    border-radius: 8px;
    background: #fff;
    padding: 18px;
}

.plf-blog-comments .comment-image img {
    width: 48px;
    height: 48px;
    border-radius: 999px;
}

.plf-blog-comments .comment-meta,
.plf-blog-comments .comment-entry,
.plf-blog-comments .reply {
    grid-column: 2;
}

.plf-blog-comments .comment-author {
    font-weight: 700;
    color: #1c1917;
}

.plf-blog-comments .comment-date,
.plf-blog-comments .comment-date a {
    color: #7b6d64;
    font-size: 13px;
    text-decoration: none;
}

.plf-blog-comments .comment-entry {
    color: #504440;
    line-height: 1.7;
}

.plf-blog-comments .comment-reply-link {
    color: #7b5649;
    font-weight: 700;
    text-decoration: none;
}

.plf-blog-reply {
    margin-top: 36px;
    border: 1px solid #e8e0d7;
    border-radius: 8px;
    background: #fff;
    padding: 28px;
    box-shadow: 0 14px 34px rgba(43, 32, 27, .05);
}

.plf-blog-reply__header {
    margin-bottom: 22px;
}

.plf-blog-reply__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.plf-blog-reply__field {
    margin-bottom: 18px;
}

.plf-blog-reply__field label {
    display: block;
    margin-bottom: 7px;
    color: #504440;
    font-size: 14px;
    font-weight: 700;
}

.plf-blog-reply__field input,
.plf-blog-reply__field textarea {
    width: 100%;
    border: 1px solid #d8cfc8;
    border-radius: 6px;
    background: #fcf9f4;
    color: #1c1917;
    padding: 12px 14px;
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.plf-blog-reply__field textarea {
    min-height: 160px;
    resize: vertical;
}

.plf-blog-reply__field input:focus,
.plf-blog-reply__field textarea:focus {
    outline: none;
    border-color: #7b5649;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(123, 86, 73, .16);
}

.plf-blog-reply__field .mage-error,
.plf-blog-reply__field .field-error,
.plf-blog-reply__field div[generated] {
    display: block;
    margin-top: 7px;
    color: #991b1b !important;
    font-size: 14px;
    line-height: 1.35;
}

.plf-blog-reply__field input.mage-error,
.plf-blog-reply__field textarea.mage-error,
.plf-blog-reply__field input[aria-invalid="true"],
.plf-blog-reply__field textarea[aria-invalid="true"] {
    border-color: #dc2626 !important;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .08) !important;
}

.plf-blog-reply__field input.mage-error:focus,
.plf-blog-reply__field textarea.mage-error:focus,
.plf-blog-reply__field input[aria-invalid="true"]:focus,
.plf-blog-reply__field textarea[aria-invalid="true"]:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .14) !important;
}

.plf-blog-reply__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.plf-blog-reply__button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #7b5649;
    color: #fff;
    padding: 0 22px;
    font-weight: 700;
    transition: background .15s ease;
}

.plf-blog-reply__button:hover {
    background: #6b4940;
}

.plf-blog-reply__note,
.plf-blog-reply__wait {
    color: #504440;
}

@media (max-width: 960px) {
    .plf-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plf-blog-post__layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .plf-blog-post__main {
        max-width: none;
    }

    .plf-blog-post__sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .plf-blog__inner {
        padding: 34px 18px 56px;
    }

    .plf-blog-grid {
        grid-template-columns: 1fr;
    }

    .plf-blog__hero h1,
    .plf-blog-post__header h1 {
        font-size: 38px;
    }

    .plf-blog-post__content h1 {
        font-size: 34px;
    }

    .plf-blog-card__body {
        padding: 20px;
    }

    .plf-blog-card__image {
        height: 150px;
    }

    .plf-blog-reply {
        padding: 22px;
    }

    .plf-blog-reply__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .plf-blog-comments .comment-list.children {
        margin-left: 16px;
    }
}
