/**
 * Sugar Hill Farm — blog.css
 * Blog index, archive, and single post styles.
 * Loaded conditionally on is_home(), is_archive(), is_single().
 */

/* ============================================================
   BLOG INDEX HERO
   ============================================================ */
.shf-blog-hero {
    min-height: 320px;
    background: linear-gradient(155deg, var(--shf-forest) 0%, #1e4519 60%, #152f12 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--shf-s4) 60px;
    position: relative;
    overflow: hidden;
}

.shf-blog-hero__content {
    max-width: var(--shf-max-w);
    margin-inline: auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.shf-blog-hero__content .shf-heading {
    font-size: clamp(36px, 5vw, 60px);
    margin-bottom: 14px;
}

.shf-blog-hero__sub {
    font-size: 15px;
    color: rgba(255,255,255,0.52);
    font-weight: 300;
    max-width: 460px;
    line-height: 1.7;
}

/* ============================================================
   FEATURED POST (blog index)
   ============================================================ */
.shf-blog-featured {
    background: var(--shf-parchment);
    border-bottom: 1px solid var(--shf-border);
    padding: var(--shf-s5) 0;
}

.shf-blog-featured__inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
}

.shf-blog-featured__img-wrap {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--shf-warm);
    text-decoration: none;
}

.shf-blog-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.shf-blog-featured__img-wrap:hover .shf-blog-featured__img {
    transform: scale(1.03);
}

.shf-blog-featured__img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.shf-blog-featured__img-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    background: var(--shf-parchment);
}

.shf-blog-featured__body {
    display: flex;
    flex-direction: column;
}

.shf-blog-featured__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.shf-blog-featured__cat {
    font-family: var(--shf-font-sans);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--shf-white);
    background: var(--shf-gold);
    padding: 4px 10px;
    border-radius: var(--shf-radius);
    text-decoration: none;
    transition: background 0.18s;
}

.shf-blog-featured__cat:hover {
    background: var(--shf-gold-lt);
}

.shf-blog-featured__dot {
    color: var(--shf-border);
    font-size: 12px;
}

.shf-blog-featured__date {
    font-family: var(--shf-font-sans);
    font-size: 12px;
    color: var(--shf-stone);
    font-weight: 300;
}

.shf-blog-featured__title {
    font-family: var(--shf-font-serif);
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--shf-charcoal);
    margin-bottom: 16px;
}

.shf-blog-featured__title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.18s;
}

.shf-blog-featured__title a:hover {
    color: var(--shf-forest);
}

.shf-blog-featured__exc {
    font-size: 15px;
    color: var(--shf-stone);
    line-height: 1.72;
    font-weight: 300;
    margin-bottom: 28px;
}

.shf-blog-featured__footer {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.shf-blog-featured__read-time {
    font-family: var(--shf-font-sans);
    font-size: 12px;
    color: var(--shf-stone);
    font-weight: 300;
}

/* ============================================================
   CATEGORY FILTER BAR
   ============================================================ */
.shf-blog-filter {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.shf-blog-filter-bar {
    background: var(--shf-parchment);
    border-bottom: 1px solid var(--shf-border);
    padding: 18px var(--shf-s4);
}

.shf-blog-filter-bar .shf-blog-filter {
    max-width: var(--shf-max-w);
    margin-inline: auto;
    margin-bottom: 0;
}

.shf-blog-cat-count {
    font-size: 10px;
    color: var(--shf-stone);
    font-weight: 300;
    opacity: 0.7;
}

/* ============================================================
   BLOG CARD — ARCHIVE VERSION (with author footer)
   ============================================================ */
.shf-blog-grid--archive {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.shf-blog-card--archive {
    display: flex;
    flex-direction: column;
    background: var(--shf-white);
    border: 1px solid var(--shf-border);
    border-radius: 3px;
    overflow: hidden;
    transition: transform 0.22s, box-shadow 0.22s;
    text-decoration: none;
}

.shf-blog-card--archive:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.09);
}

.shf-blog-card__img-link {
    display: block;
    text-decoration: none;
}

.shf-blog-card--archive .shf-blog-card__img {
    height: 200px;
    overflow: hidden;
    background: var(--shf-parchment);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    margin-bottom: 0;
}

.shf-blog-card--archive .shf-blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.shf-blog-card--archive:hover .shf-blog-card__img img {
    transform: scale(1.04);
}

.shf-blog-card__img-ph {
    font-size: 48px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shf-parchment);
}

.shf-blog-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shf-blog-card__meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.shf-blog-card__cat {
    font-family: var(--shf-font-sans);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--shf-gold);
    text-decoration: none;
    transition: color 0.18s;
}

.shf-blog-card__cat:hover {
    color: var(--shf-gold-lt);
}

.shf-blog-card__dot {
    color: var(--shf-border);
    font-size: 12px;
}

.shf-blog-card__date {
    font-family: var(--shf-font-sans);
    font-size: 11px;
    color: var(--shf-stone);
    font-weight: 300;
}

.shf-blog-card__title {
    font-family: var(--shf-font-serif);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.22;
    color: var(--shf-charcoal);
    margin-bottom: 10px;
}

.shf-blog-card__title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.18s;
}

.shf-blog-card__title a:hover {
    color: var(--shf-forest);
}

.shf-blog-card__exc {
    font-size: 13px;
    color: var(--shf-stone);
    line-height: 1.65;
    font-weight: 300;
    flex: 1;
    margin-bottom: 16px;
}

.shf-blog-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--shf-border);
    margin-top: auto;
}

.shf-blog-card__author {
    font-family: var(--shf-font-sans);
    font-size: 11px;
    color: var(--shf-stone);
    font-weight: 400;
}

.shf-blog-card__read-time {
    font-family: var(--shf-font-sans);
    font-size: 11px;
    color: var(--shf-border);
    font-weight: 300;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.shf-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: var(--shf-s5);
    flex-wrap: wrap;
}

.shf-pagination__btn {
    font-family: var(--shf-font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 10px 20px;
    border: 1px solid var(--shf-border);
    border-radius: var(--shf-radius);
    color: var(--shf-stone);
    background: none;
    text-decoration: none;
    transition: all 0.18s;
}

.shf-pagination__btn:hover {
    border-color: var(--shf-forest);
    color: var(--shf-forest);
}

.shf-pagination__pages {
    display: flex;
    gap: 4px;
    align-items: center;
}

.shf-pagination__item .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-family: var(--shf-font-sans);
    font-size: 13px;
    font-weight: 400;
    color: var(--shf-stone);
    border: 1px solid transparent;
    border-radius: var(--shf-radius);
    text-decoration: none;
    transition: all 0.15s;
}

.shf-pagination__item .page-numbers:hover {
    border-color: var(--shf-border);
    color: var(--shf-charcoal);
}

.shf-pagination__item .page-numbers.current {
    background: var(--shf-forest);
    color: var(--shf-white);
    border-color: var(--shf-forest);
    font-weight: 500;
}

.shf-pagination__item .page-numbers.dots {
    border: none;
    color: var(--shf-border);
    cursor: default;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.shf-blog-empty {
    text-align: center;
    padding: var(--shf-s6) 0;
}

.shf-blog-empty__icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.shf-blog-empty__title {
    font-family: var(--shf-font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--shf-charcoal);
    margin-bottom: 10px;
}

.shf-blog-empty__body {
    font-size: 15px;
    color: var(--shf-stone);
    font-weight: 300;
    margin-bottom: 28px;
}

/* ============================================================
   ARCHIVE HERO
   ============================================================ */
.shf-archive-hero {
    background: var(--shf-parchment);
    border-bottom: 1px solid var(--shf-border);
    padding: var(--shf-s5) 0 var(--shf-s4);
}

.shf-archive-hero__inner {
    max-width: 640px;
}

.shf-archive-hero .shf-heading {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 12px;
}

.shf-archive-hero__desc {
    font-size: 15px;
    color: var(--shf-stone);
    line-height: 1.72;
    font-weight: 300;
    margin-bottom: 12px;
}

.shf-archive-hero__count {
    font-family: var(--shf-font-sans);
    font-size: 12px;
    color: var(--shf-stone);
    font-weight: 300;
    letter-spacing: 0.04em;
}

.shf-archive-hero__count span {
    color: var(--shf-forest);
    font-weight: 500;
}

/* ============================================================
   SINGLE POST — HERO
   ============================================================ */
.shf-post-hero {
    height: 480px;
    position: relative;
    overflow: hidden;
    background: var(--shf-charcoal);
}

.shf-post-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.shf-post-hero:hover .shf-post-hero__bg {
    transform: scale(1.02);
}

.shf-post-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}

/* ============================================================
   SINGLE POST — LAYOUT
   ============================================================ */
.shf-post-page {
    padding: var(--shf-s5) 0 var(--shf-s6);
    background: var(--shf-cream);
}

.shf-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 64px;
    align-items: start;
}

/* ============================================================
   POST META & TITLE
   ============================================================ */
.shf-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.shf-post-meta__cat {
    font-family: var(--shf-font-sans);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--shf-white);
    background: var(--shf-gold);
    padding: 4px 10px;
    border-radius: var(--shf-radius);
    text-decoration: none;
    transition: background 0.18s;
}

.shf-post-meta__cat:hover {
    background: var(--shf-gold-lt);
}

.shf-post-meta__dot {
    color: var(--shf-border);
    font-size: 12px;
}

.shf-post-meta__date,
.shf-post-meta__read {
    font-family: var(--shf-font-sans);
    font-size: 12px;
    color: var(--shf-stone);
    font-weight: 300;
}

.shf-post-title {
    font-family: var(--shf-font-serif);
    font-size: clamp(30px, 4.5vw, 52px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--shf-charcoal);
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

/* ============================================================
   AUTHOR BAR
   ============================================================ */
.shf-post-author-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.shf-post-author-bar__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--shf-border);
}

.shf-post-author-bar__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.shf-post-author-bar__label {
    font-family: var(--shf-font-sans);
    font-size: 10px;
    color: var(--shf-stone);
    font-weight: 300;
}

.shf-post-author-bar__name {
    font-family: var(--shf-font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--shf-charcoal);
    text-decoration: none;
    transition: color 0.18s;
}

.shf-post-author-bar__name:hover {
    color: var(--shf-forest);
}

.shf-post-author-bar__share {
    margin-left: auto;
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Share buttons */
.shf-post-share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--shf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--shf-font-sans);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: none;
    color: var(--shf-stone);
    transition: all 0.18s;
}

.shf-post-share-btn:hover {
    border-color: var(--shf-forest);
    color: var(--shf-forest);
}

.shf-post-divider {
    border: none;
    border-top: 1px solid var(--shf-border);
    margin: 0 0 32px;
}

/* Featured image (fallback, no hero) */
.shf-post-thumb {
    margin-bottom: 32px;
    border-radius: 4px;
    overflow: hidden;
}

.shf-post-thumb__img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   POST CONTENT — typography
   Defined in style.css (loads everywhere) — not duplicated here.
   .shf-post-content styles shared by single.php and page.php.
   ============================================================ */

/* Post pages (nextpage) */
.shf-post-pages {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 32px 0;
    padding: 16px 0;
    border-top: 1px solid var(--shf-border);
    border-bottom: 1px solid var(--shf-border);
}

.shf-post-pages__label {
    font-size: 11px;
    color: var(--shf-stone);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.shf-post-pages__link a,
.shf-post-pages__link {
    font-size: 13px;
    color: var(--shf-forest);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================================
   TAGS
   ============================================================ */
.shf-post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--shf-border);
}

.shf-post-tags__label {
    font-family: var(--shf-font-sans);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--shf-stone);
    font-weight: 500;
}

.shf-post-tag {
    font-family: var(--shf-font-sans);
    font-size: 11px;
    padding: 5px 13px;
    border: 1px solid var(--shf-border);
    border-radius: 20px;
    color: var(--shf-stone);
    text-decoration: none;
    transition: all 0.15s;
    font-weight: 300;
}

.shf-post-tag:hover {
    border-color: var(--shf-forest);
    color: var(--shf-forest);
    background: rgba(27,58,24,0.04);
}

/* ============================================================
   SHARE BAR (bottom of post)
   ============================================================ */
.shf-post-share-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    padding: 22px 24px;
    background: var(--shf-parchment);
    border: 1px solid var(--shf-border);
    border-radius: var(--shf-radius);
    flex-wrap: wrap;
}

.shf-post-share-bar__label {
    font-family: var(--shf-font-sans);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--shf-stone);
    font-weight: 500;
    white-space: nowrap;
}

.shf-post-share-bar__btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shf-post-share-pill {
    font-family: var(--shf-font-sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.07em;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--shf-border);
    text-decoration: none;
    color: var(--shf-stone);
    background: none;
    cursor: pointer;
    transition: all 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.shf-post-share-pill:hover {
    border-color: var(--shf-forest);
    color: var(--shf-forest);
}

.shf-post-share-pill--copy.is-copied {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.shf-post-sidebar {
    position: sticky;
    top: calc(66px + var(--shf-s3));
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Table of Contents */
.shf-post-toc {
    background: var(--shf-parchment);
    border: 1px solid var(--shf-border);
    border-radius: 3px;
    padding: 22px 22px;
}

.shf-post-toc__title {
    font-family: var(--shf-font-sans);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--shf-stone);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--shf-border);
}

.shf-post-toc__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shf-post-toc__loading {
    font-size: 12px;
    color: var(--shf-border);
    font-style: italic;
    font-weight: 300;
}

/* TOC links (injected by JS) */
.shf-toc-link {
    font-family: var(--shf-font-sans);
    font-size: 13px;
    font-weight: 300;
    color: var(--shf-stone);
    text-decoration: none;
    padding: 5px 0;
    display: block;
    border-left: 2px solid transparent;
    padding-left: 10px;
    transition: color 0.15s, border-color 0.15s;
    line-height: 1.4;
}

.shf-toc-link:hover,
.shf-toc-link.is-active {
    color: var(--shf-forest);
    border-left-color: var(--shf-forest);
}

.shf-toc-link--h3 {
    font-size: 12px;
    padding-left: 22px;
    color: var(--shf-border);
}

.shf-toc-link--h3:hover,
.shf-toc-link--h3.is-active {
    color: var(--shf-stone);
    border-left-color: var(--shf-stone);
}

/* Sidebar CTA */
.shf-post-sidebar-cta {
    background: var(--shf-forest);
    border-radius: 3px;
    padding: 24px 22px;
}

.shf-post-sidebar-cta__eyebrow {
    font-family: var(--shf-font-sans);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--shf-gold-lt);
    margin-bottom: 8px;
}

.shf-post-sidebar-cta__title {
    font-family: var(--shf-font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--shf-white);
    margin-bottom: 8px;
    line-height: 1.15;
}

.shf-post-sidebar-cta__body {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    font-weight: 300;
    line-height: 1.65;
    margin-bottom: 18px;
}

/* Sidebar related posts */
.shf-post-sidebar-related {
    background: var(--shf-parchment);
    border: 1px solid var(--shf-border);
    border-radius: 3px;
    padding: 20px 22px;
}

.shf-sidebar-post {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--shf-border);
    transition: opacity 0.18s;
}

.shf-sidebar-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.shf-sidebar-post:hover {
    opacity: 0.75;
}

.shf-sidebar-post__img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--shf-radius);
    flex-shrink: 0;
}

.shf-sidebar-post__img-ph {
    width: 56px;
    height: 56px;
    background: var(--shf-warm);
    border-radius: var(--shf-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.shf-sidebar-post__title {
    font-family: var(--shf-font-serif);
    font-size: 15px;
    font-weight: 400;
    color: var(--shf-charcoal);
    line-height: 1.25;
    margin-bottom: 3px;
}

.shf-sidebar-post__date {
    font-family: var(--shf-font-sans);
    font-size: 10px;
    color: var(--shf-stone);
    font-weight: 300;
}

/* ============================================================
   AUTHOR BIO
   ============================================================ */
.shf-post-author-bio {
    background: var(--shf-parchment);
    border-top: 1px solid var(--shf-border);
    border-bottom: 1px solid var(--shf-border);
    padding: var(--shf-s4) 0;
}

.shf-post-author-bio__inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.shf-post-author-bio__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--shf-border);
}

.shf-post-author-bio__label {
    font-family: var(--shf-font-sans);
    font-size: 9px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--shf-stone);
    font-weight: 500;
    margin-bottom: 4px;
}

.shf-post-author-bio__name {
    font-family: var(--shf-font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--shf-charcoal);
    margin-bottom: 8px;
}

.shf-post-author-bio__bio {
    font-size: 14px;
    color: var(--shf-stone);
    line-height: 1.72;
    font-weight: 300;
}

/* ============================================================
   PREV / NEXT NAV
   ============================================================ */
.shf-post-nav {
    background: var(--shf-cream);
    border-top: 1px solid var(--shf-border);
    padding: 0;
}

.shf-post-nav__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--shf-border);
}

.shf-post-nav__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    background: var(--shf-cream);
    text-decoration: none;
    transition: background 0.2s;
}

.shf-post-nav__item--empty {
    background: var(--shf-cream);
}

.shf-post-nav__item:hover {
    background: var(--shf-parchment);
}

.shf-post-nav__item--next {
    justify-content: flex-end;
    text-align: right;
}

.shf-post-nav__img {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--shf-radius);
    flex-shrink: 0;
    opacity: 0.85;
}

.shf-post-nav__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 300px;
}

.shf-post-nav__text--right {
    align-items: flex-end;
}

.shf-post-nav__dir {
    font-family: var(--shf-font-sans);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--shf-stone);
    font-weight: 500;
}

.shf-post-nav__cat {
    font-family: var(--shf-font-sans);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--shf-gold);
    font-weight: 500;
}

.shf-post-nav__title {
    font-family: var(--shf-font-serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--shf-charcoal);
    line-height: 1.2;
}

/* ============================================================
   RELATED POSTS SECTION
   ============================================================ */
.shf-post-related {
    border-top: 1px solid var(--shf-border);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.shf-post-comments {
    background: var(--shf-parchment);
    border-top: 1px solid var(--shf-border);
    padding: var(--shf-s5) 0;
}

.shf-post-comments__inner {
    max-width: 760px;
}

/* WP comments title */
.shf-post-comments #comments h2,
.shf-post-comments .comments-title {
    font-family: var(--shf-font-serif) !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    color: var(--shf-charcoal) !important;
    margin-bottom: var(--shf-s3) !important;
}

/* Comment list */
.shf-post-comments .comment-list {
    list-style: none !important;
    padding: 0 !important;
}

.shf-post-comments .comment {
    padding: var(--shf-s3) 0 !important;
    border-bottom: 1px solid var(--shf-border) !important;
}

.shf-post-comments .comment-author .fn {
    font-family: var(--shf-font-serif) !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    color: var(--shf-charcoal) !important;
}

.shf-post-comments .comment-meta,
.shf-post-comments .comment-metadata {
    font-family: var(--shf-font-sans) !important;
    font-size: 11px !important;
    color: var(--shf-stone) !important;
    font-weight: 300 !important;
}

.shf-post-comments .comment-content p {
    font-family: var(--shf-font-sans) !important;
    font-size: 14px !important;
    color: var(--shf-charcoal) !important;
    line-height: 1.72 !important;
    font-weight: 300 !important;
    margin-top: 10px !important;
}

/* Comment form */
.shf-post-comments #respond h3,
.shf-post-comments .comment-reply-title {
    font-family: var(--shf-font-serif) !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    color: var(--shf-charcoal) !important;
    margin: var(--shf-s4) 0 var(--shf-s3) !important;
}

.shf-post-comments .comment-form input[type="text"],
.shf-post-comments .comment-form input[type="email"],
.shf-post-comments .comment-form input[type="url"],
.shf-post-comments .comment-form textarea {
    font-family: var(--shf-font-sans) !important;
    font-size: 13px !important;
    border: 1px solid var(--shf-border) !important;
    border-radius: var(--shf-radius) !important;
    padding: 12px 14px !important;
    background: var(--shf-white) !important;
    color: var(--shf-charcoal) !important;
    width: 100% !important;
    outline: none;
    transition: border-color 0.18s;
}

.shf-post-comments .comment-form input:focus,
.shf-post-comments .comment-form textarea:focus {
    border-color: var(--shf-forest) !important;
}

.shf-post-comments .comment-form label {
    font-family: var(--shf-font-sans) !important;
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    color: var(--shf-stone) !important;
    display: block;
    margin-bottom: 6px !important;
}

.shf-post-comments .form-submit .submit {
    font-family: var(--shf-font-sans) !important;
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    padding: 13px 28px !important;
    background: var(--shf-forest) !important;
    color: var(--shf-white) !important;
    border: none !important;
    border-radius: var(--shf-radius) !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.shf-post-comments .form-submit .submit:hover {
    background: var(--shf-sage) !important;
}

/* ============================================================
   RESPONSIVE — BLOG
   ============================================================ */
@media (max-width: 960px) {

    .shf-blog-featured__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .shf-blog-grid--archive {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .shf-post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .shf-post-sidebar {
        position: static;
        order: -1;
    }

    .shf-post-toc {
        display: none; /* hide TOC on tablet/mobile — content first */
    }

    .shf-post-nav__img {
        display: none;
    }
}

@media (max-width: 640px) {

    .shf-blog-featured__img-wrap {
        aspect-ratio: 4 / 3;
    }

    .shf-blog-grid--archive {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shf-post-hero {
        height: 280px;
    }

    .shf-post-nav__inner {
        grid-template-columns: 1fr;
    }

    .shf-post-author-bar__share {
        display: none; /* share is shown at bottom instead */
    }

    .shf-post-author-bio__inner {
        flex-direction: column;
        gap: 16px;
    }

    .shf-blog-filter {
        gap: 4px;
    }
}
