/* Editorial layouts use the theme's font families and global reading size. */
.fc-journal, .fc-single-post { padding-block: clamp(2.5rem, 6vw, 5rem); }
.fc-journal-heading { padding-bottom: 2.5rem; max-width: 850px; }
.fc-blog-eyebrow { margin: 0 0 1rem; font-size: var(--fluxo-font-size-body, 1rem); color: var(--fc-secondary); }
.fc-journal-heading h1, .fc-post-heading h1 { margin: 0 0 1.25rem; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -.04em; text-wrap: balance; }
.fc-journal-intro { max-width: 640px; font-size: calc(var(--fluxo-font-size-body, 1rem) * 1.125); color: var(--fc-secondary); }
.fc-journal-intro > :last-child { margin-bottom: 0; }
.fc-journal-categories { display: flex; gap: .6rem; flex-wrap: wrap; padding: 0 0 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--fc-border); }
.fc-journal-categories a, .fc-post-tags a { display: inline-flex; align-items: center; min-height: 42px; padding: .4rem 1rem; border-radius: 999px; background: var(--fc-muted-bg); color: var(--fc-primary); text-decoration: none; }
.fc-journal-categories a[aria-current], .fc-journal-categories a:hover { background: var(--fc-primary); color: #fff; }
.fc-journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; }
.fc-article-card { display: flex; flex-direction: column; min-width: 0; margin: 0; background: transparent; border: 0; box-shadow: none; }
.fc-article-card__image { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: var(--fc-muted-bg); }
.fc-article-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.fc-article-card__image:hover img { transform: scale(1.035); }
.fc-article-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(135deg, #eef1ed, #e1e8e5); color: #87988e; }
.fc-article-card:nth-child(3n+2) .fc-article-placeholder { background: linear-gradient(135deg, #f1eeea, #e8e1d9); color: #9a8874; }
.fc-article-card:nth-child(3n) .fc-article-placeholder { background: linear-gradient(135deg, #ecedf2, #dde2eb); color: #7a89a0; }
.fc-article-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding-top: 1.35rem; }
.fc-blog-category, .fc-post-categories a { color: var(--fc-secondary); font-weight: 500; text-decoration: none; font-size: var(--fluxo-font-size-body, 1rem); }
.fc-article-card .fc-article-card__title { margin: .65rem 0 .85rem; font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.25; letter-spacing: -.025em; }
.fc-article-card__title a { color: var(--fc-primary); text-decoration: none; }
.fc-article-card__title a:hover { color: var(--fc-accent); }
.fc-blog-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: var(--fc-secondary); font-size: var(--fluxo-font-size-body, 1rem); }
.fc-blog-meta a { color: inherit; }
.fc-article-card__excerpt { margin: 1rem 0 1.25rem; line-height: 1.7; color: var(--fc-text); }
.fc-article-card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-block: .25rem; font-weight: 600; text-decoration: none; }
.fc-journal-grid--featured > .fc-article-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(2rem, 4vw, 4rem); padding-bottom: 3rem; margin-bottom: .5rem; border-bottom: 1px solid var(--fc-border); }
.fc-journal-grid--featured > .fc-article-card:first-child .fc-article-card__body { padding: 0; }
.fc-journal-grid--featured > .fc-article-card:first-child .fc-article-card__title { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.fc-blog-pagination { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--fc-border); }
.fc-blog-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.fc-blog-pagination .page-numbers :is(a,span) { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding-inline: .7rem; border-radius: 4px; text-decoration: none; }
.fc-blog-pagination .current { background: var(--fc-primary); color: #fff; }
.fc-journal-empty { padding: 3rem 0; }
.fc-post-heading { max-width: none; margin: 0 0 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--fc-border); }
.fc-blog-back { display: inline-block; margin-bottom: 1.25rem; text-decoration: none; color: var(--fc-secondary); }
.fc-post-categories { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.fc-post-deck { font-size: calc(var(--fluxo-font-size-body, 1rem) * 1.25); line-height: 1.6; color: var(--fc-secondary); }
.fc-post-cover { margin: 0 0 2rem; }
.fc-post-cover img { width: 100%; max-height: 700px; object-fit: contain; border-radius: 6px; }
.fc-post-cover figcaption { margin-top: .8rem; color: var(--fc-secondary); text-align: center; }
.fc-post-layout { max-width: 740px; margin-inline: auto; }
.fc-post-layout--sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: clamp(2rem, 4vw, 4rem); max-width: none; }
.fc-post-reading, .fc-post-layout .site-sidebar { min-width: 0; }
.fc-single-post .fc-post-content { font-size: var(--fluxo-font-size-body, 1rem); line-height: 1.85; }
.fc-post-content :is(h2,h3,h4) { margin-top: 1.8em; margin-bottom: .7em; letter-spacing: -.025em; }
.fc-post-content > :first-child { margin-top: 0; }
.fc-post-content :is(ul,ol) { padding-inline-start: 1.5em; margin-inline-start: 0; }
.fc-post-content li + li { margin-top: .5rem; }
.fc-post-content :is(blockquote,.wp-block-quote) { margin: 2.5rem 0; padding: .5rem 0 .5rem 1.5rem; border: 0; border-inline-start: 3px solid var(--fc-primary); font-size: 1.25em; }
.fc-post-content blockquote > :last-child { margin-bottom: 0; }
.fc-post-content :is(pre,.wp-block-code) { overflow-x: auto; padding: 1.25rem; background: var(--fc-muted-bg); border-radius: 4px; }
.fc-post-content .wp-block-table { overflow-x: auto; }
.fc-post-content img { height: auto; }
.fc-post-content .alignwide, .fc-post-content .alignfull { max-width: 100%; margin-inline: 0; }
.fc-post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.5rem; }
.fc-post-tags > span { margin-inline-end: .5rem; color: var(--fc-secondary); }
.fc-post-author { margin-top: 3rem; padding: 2rem; background: var(--fc-muted-bg); }
.fc-post-author h2 { font-size: 1.4rem; margin-bottom: .65rem; }
.fc-post-author h2 a { text-decoration: none; }
.fc-post-author p:last-child { margin-bottom: 0; }
.fc-single-post .post-navigation { margin-top: 3rem; padding-block: 1.75rem; border-block: 1px solid var(--fc-border); }
.fc-single-post .post-navigation .nav-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem; }
.fc-single-post .post-navigation a { display: grid; gap: .55rem; text-decoration: none; }
.fc-single-post .nav-subtitle { color: var(--fc-secondary); font-weight: 400; }
.fc-single-post .nav-title { font-size: 1.125em; font-weight: 600; }
.fc-single-post .nav-next { grid-column: 2; text-align: end; }
.fc-single-post .comments-area { margin-top: 3rem; padding: 0; border: 0; box-shadow: none; }
.fc-single-post .comment-list { padding: 0; list-style: none; }
.fc-single-post .comment-body { padding-block: 1.5rem; border-bottom: 1px solid var(--fc-border); }
.fc-single-post .comment-form :is(input:not([type=checkbox]),textarea) { font-size: var(--fluxo-font-size-body, 1rem); min-height: 48px; }
.fc-single-post .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .6rem; }
.fc-single-post .comment-form-cookies-consent input { margin-top: .45rem; }
.fc-single-post .comment-form-cookies-consent label { font-weight: 400; }
.fc-related-posts { margin-top: clamp(4rem, 7vw, 7rem); padding-top: 3rem; border-top: 1px solid var(--fc-border); }
.fc-related-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.fc-related-heading h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2rem); }
@media (max-width: 960px) {
    .fc-journal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .fc-post-layout--sidebar { display: block; }
    .fc-post-layout .site-sidebar { margin-top: 3rem; }
}
@media (max-width: 640px) {
    .fc-journal-grid { grid-template-columns: minmax(0,1fr); }
    .fc-journal-grid--featured > .fc-article-card:first-child { display: flex; gap: 0; }
    .fc-journal-grid--featured > .fc-article-card:first-child .fc-article-card__body { padding-top: 1.35rem; }
    .fc-journal-grid--featured > .fc-article-card:first-child .fc-article-card__image { width: 100%; }
    .fc-journal-categories { gap: .4rem; margin-bottom: 2rem; }
    .fc-related-heading { align-items: flex-start; flex-direction: column; }
    .fc-post-author { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .fc-article-card__image img { transition: none; }
}

/* Keep the heading and article on one reading axis, including posts without images. */
.fc-single-post { padding-top: clamp(2rem, 4vw, 3rem); }
.fc-single-post .fc-post-heading h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.25;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
}
.fc-single-post .fc-post-categories { margin-bottom: .75rem; }
.fc-single-post .fc-post-layout .site-sidebar {
    display: grid;
    gap: 1.75rem;
    padding-inline-start: 1.5rem;
    border-inline-start: 1px solid var(--fc-border);
}
.fc-single-post .site-sidebar .widget {
    min-width: 0;
    padding: 0 0 1.5rem;
    border: 0;
    border-bottom: 1px solid var(--fc-border);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.fc-single-post .site-sidebar .widget:last-child { border-bottom: 0; }
.fc-single-post .site-sidebar :is(h2,h3,.widget-title,.wp-block-search__label) {
    display: block;
    margin: 0 0 1rem;
    font-family: var(--fluxo-font-body);
    font-size: var(--fluxo-font-size-body, 1rem);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
}
.fc-single-post .site-sidebar :is(ul,ol) { padding: 0; margin: 0; list-style: none; }
.fc-single-post .site-sidebar li + li { margin-top: .8rem; }
.fc-single-post .site-sidebar li a { text-decoration: none; }
.fc-single-post .site-sidebar li a:hover { text-decoration: underline; }
.fc-single-post .site-sidebar :is(.search-form,.wp-block-search__inside-wrapper) {
    display: flex;
    align-items: stretch;
    gap: .5rem;
    width: 100%;
    min-width: 0;
}
.fc-single-post .site-sidebar :is(.search-field,.wp-block-search__input) {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    min-height: 46px;
    padding: .6rem .75rem;
    border: 1px solid var(--fc-input-border);
    border-radius: 5px;
    font-size: var(--fluxo-font-size-body, 1rem);
}
.fc-single-post .site-sidebar :is(.search-submit,.wp-block-search__button) {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: .6rem .85rem;
    border: 0;
    border-radius: 5px;
    background: var(--fc-primary);
    color: #fff;
    font-size: var(--fluxo-font-size-body, 1rem);
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}
@media (max-width: 960px) {
    .fc-single-post .fc-post-layout { max-width: 740px; margin-inline: auto; }
    .fc-single-post .fc-post-layout .site-sidebar {
        padding: 2rem 0 0;
        border-inline-start: 0;
        border-top: 1px solid var(--fc-border);
    }
}
