/*
Theme Name: Steiner Editorial GP
Theme URI: https://steiner-australia.org/
Description: Clean editorial child theme for Steiner Australia (GeneratePress child, replacing PopularFX + PageLayer)
Author: Steiner Australia
Template: generatepress
Version: 1.0.0
Text Domain: steiner-editorial-gp
*/

/* Base resets & layout compatibility for Steiner Editorial */
*, *::before, *::after {
    box-sizing: border-box;
}
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}
body {
    margin: 0;
    background: var(--st-paper, #fffdf9);
    color: var(--st-ink, #422c30);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}
main {
    display: block;
}
img {
    max-width: 100%;
    height: auto;
    border-style: none;
}

/* Container & Row Layout */
.pagelayer-row-stretch-auto > .pagelayer-row-holder,
.pagelayer-row-stretch-full > .pagelayer-row-holder.pagelayer-width-auto {
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
}
.p-2zz1745 .pagelayer-col-holder,
.p-ddd4860 .pagelayer-col-holder,
.p-eoz5068 .pagelayer-col-holder,
.p-ru03751 .pagelayer-col-holder,
.p-56k7888 .pagelayer-col-holder {
    padding: 10px;
}

/* Archive / Blog Grid (.p-wf43464) */
.p-dcp9233 {
    margin: 0 0 18px 0;
    padding: 0;
    font-size: 28px !important;
}
.p-dcp9233 .pagelayer-archive-title {
    text-align: center;
    font-weight: 600;
    color: var(--st-ink, #422c30);
}
.pagelayer-posts-container,
.p-wf43464 .pagelayer-posts-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-column-gap: 20px;
    grid-row-gap: 40px;
}
.p-wf43464 .pagelayer-wposts-col {
    background-color: #ffffff;
    min-width: 0;
}
.p-wf43464 .pagelayer-wposts-post {
    border: 1px solid #ead9d2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    padding: 24px !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.p-wf43464 .pagelayer-wposts-featured a {
    display: block;
}
.pagelayer-wposts-thumb,
.p-wf43464 .pagelayer-wposts-thumb {
    display: inline-block;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    width: 100%;
    padding: calc(50% * 0.7) 0;
    border-radius: 4px;
}
.p-wf43464 .pagelayer-wposts-content {
    padding: 5px;
    color: #121212;
    text-align: left;
}
.p-wf43464 .pagelayer-wposts-content a {
    text-decoration: none;
}
.p-wf43464 .pagelayer-wposts-title {
    color: #9e2831;
    font-size: 20px !important;
    line-height: 1.4 !important;
    font-weight: 600;
    margin-top: 8px;
}
.p-wf43464 .pagelayer-wposts-meta {
    padding: 10px 0;
    font-size: 12px !important;
    color: #655559 !important;
}
.p-wf43464 .pagelayer-wposts-meta * {
    font-size: 12px;
    color: #655559;
}
.pagelayer-wposts-sep {
    font-weight: 100;
    margin: 0 4px;
}
.pagelayer-wposts-sep:last-child {
    display: none;
}
.p-wf43464 .pagelayer-wposts-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #422c30;
}

/* Pagination */
.pagelayer-pagination,
.p-wf43464 .pagelayer-pagination {
    padding: 50px 20px;
    text-align: center;
}
.pagelayer-pagination .page-numbers:not(:last-child) {
    margin-right: 20px;
}
.pagelayer-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}
.pagelayer-pagination .page-numbers.current {
    background: #9e2831;
    color: #fff !important;
}

/* Single Post */
.wp-block-post-title {
    box-sizing: border-box;
    word-break: break-word;
}
.p-0ur6551 {
    padding: 0 0 10px 0;
}
.p-0ur6551 .pagelayer-post-info-container {
    text-align: center;
}
.pagelayer-post-info-vertical > div {
    display: inline-block;
}
.p-0ur6551 .pagelayer-post-info-vertical .pagelayer-post-info-list-container {
    margin-right: 15px;
}
.p-0ur6551 .pagelayer-post-info-label,
.p-0ur6551 .pagelayer-post-info-label a,
.p-0ur6551 .pagelayer-post-info-list-link {
    color: #422c30;
    text-decoration: none;
    font-size: 14px;
}
.p-fqw1783 {
    text-align: center;
    margin: 10px 0 20px;
}
.p-3k92463 {
    margin: 20px 0 10px 0;
}
.p-h128677 .pagelayer-post-info-container {
    text-align: left;
}
.p-h128677 .pagelayer-post-info-label,
.p-h128677 .pagelayer-post-info-label a {
    color: #9e2831;
    text-decoration: none;
    font-weight: 600;
}

/* Single Post Navigation */
.pagelayer-post-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.pagelayer-prev-post,
.pagelayer-next-post {
    width: calc(50% - 10px);
    min-width: 0;
}
.pagelayer-next-post {
    text-align: right;
}
.pagelayer-prev-post a,
.pagelayer-next-post a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #422c30;
    max-width: 100%;
}
.pagelayer-post-nav-container .pagelayer-prev-holder,
.pagelayer-post-nav-container .pagelayer-next-holder {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.p-49z2272 .pagelayer-post-nav-link {
    color: #655559;
    font-size: 13px;
}
.p-49z2272 .pagelayer-post-nav-title {
    color: #9e2831;
    font-weight: 600;
    font-size: 15px;
    word-break: break-word;
}
.p-49z2272 .pagelayer-post-nav-separator {
    display: none;
}

/* Responsive Breakpoints */
@media (max-width: 800px) {
    .pagelayer-posts-container,
    .p-wf43464 .pagelayer-posts-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pagelayer-post-nav-container {
        flex-direction: column;
        align-items: stretch;
    }
    .pagelayer-prev-post,
    .pagelayer-next-post {
        width: 100%;
        text-align: left;
    }
}
@media (max-width: 599px) {
    .pagelayer-posts-container,
    .p-wf43464 .pagelayer-posts-container {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .pagelayer-pagination .page-numbers:not(:last-child) {
        margin-right: 8px;
    }
}
