/* Single Journal Entry - Editorial monograph */
body.single-resource_hub,
body.single-resource_hub .site-main--offset {
    background: #F4F1EA;
}

.single-hub-article {
    background: #F4F1EA;
    color: #2D2D2D;
    padding-bottom: 5rem;
}

.single-hub-header {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.2rem 1.5rem 2.8rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
}

.single-hub-header.no-thumb {
    grid-template-columns: 1fr;
    max-width: 860px;
}

.single-hub-featured-image {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 0.5px solid rgba(45, 45, 45, 0.28);
    box-shadow:
        0 2px 0 rgba(22, 22, 22, 0.24),
        0 20px 34px rgba(96, 84, 70, 0.16),
        22px 28px 70px rgba(176, 165, 150, 0.2);
}

.single-hub-featured-image img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    filter: sepia(0.16) saturate(0.9) contrast(0.95);
}

.single-hub-grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.8px, transparent 0.8px);
    background-size: 3px 3px;
    mix-blend-mode: soft-light;
    opacity: 0.45;
}

.single-hub-title-wrapper {
    max-width: 44ch;
}

.single-hub-back-link {
    display: inline-flex;
    align-items: center;
    margin: 0 0 1.3rem;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #2D2D2D;
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 45, 45, 0.35);
    padding-bottom: 0.14rem;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.single-hub-back-link:hover {
    color: #4F6354;
    border-color: rgba(79, 99, 84, 0.7);
}

.single-hub-category {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #6A675F;
}

.single-hub-title {
    margin: 0.65rem 0 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.1rem, 4.6vw, 4rem);
    font-weight: 500;
    line-height: 0.99;
    color: #2D2D2D;
}

.single-hub-meta {
    margin-top: 1.2rem;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6A675F;
}

.single-hub-meta-sep {
    letter-spacing: 0;
}

.single-hub-content-wrapper {
    padding: 1rem 0 0;
}

.single-hub-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 1.22vw, 1.24rem);
    line-height: 1.86;
    color: #332E26;
}

.single-hub-content p {
    margin: 0 0 1.35rem;
}

.single-hub-content > p:first-of-type::first-letter {
    float: left;
    margin-right: 0.45rem;
    margin-top: 0.33rem;
    font-size: clamp(2.7rem, 4vw, 4rem);
    line-height: 0.84;
    font-weight: 500;
    color: #2D2D2D;
}

.single-hub-content h2,
.single-hub-content h3,
.single-hub-content h4 {
    margin: 2.1rem 0 0.8rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.25;
    color: #2D2D2D;
}

.single-hub-content h2 {
    font-size: clamp(1.7rem, 2.5vw, 2.1rem);
}

.single-hub-content h3 {
    font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.single-hub-content h4 {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.single-hub-content blockquote {
    margin: 2rem 0;
    padding: 1.3rem 1.6rem;
    border-left: 2px solid rgba(45, 45, 45, 0.32);
    background: rgba(45, 45, 45, 0.04);
    font-style: italic;
}

.single-hub-content a {
    color: #2D2D2D;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.single-hub-content a:hover {
    color: #4F6354;
}

.single-hub-content ul,
.single-hub-content ol {
    margin: 1.4rem 0;
    padding-left: 1.3rem;
}

.single-hub-content li {
    margin-bottom: 0.65rem;
}

.single-hub-content img {
    display: block;
    width: 100%;
    height: auto;
    margin: 2rem 0;
}

.single-hub-signoff {
    max-width: 760px;
    margin: 2rem auto 0;
    padding: 0 1.5rem;
}

.single-hub-signoff img {
    display: block;
    width: clamp(130px, 20vw, 190px);
    height: auto;
    opacity: 0.9;
}

.single-hub-footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.2rem 1.5rem 0;
}

.single-hub-share {
    padding-top: 2rem;
    border-top: 0.5px solid rgba(45, 45, 45, 0.2);
}

.share-title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #6A675F;
}

.share-buttons {
    margin-top: 0.9rem;
    display: flex;
    gap: 0.7rem;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(45, 45, 45, 0.45);
    background: transparent;
    color: #2D2D2D;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
    cursor: pointer;
}

.share-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.share-btn:hover,
.share-btn.is-copied {
    border-color: #2D2D2D;
    background: rgba(45, 45, 45, 0.08);
}

.single-hub-related {
    max-width: 1240px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem 0;
}

.related-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 500;
    color: #2D2D2D;
}

.related-posts-grid {
    margin-top: 1.8rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.related-post-card {
    display: block;
}

.related-post-image {
    position: relative;
    display: block;
    overflow: hidden;
    border: 0.5px solid rgba(45, 45, 45, 0.3);
    box-shadow:
        0 2px 0 rgba(22, 22, 22, 0.22),
        0 20px 34px rgba(96, 84, 70, 0.15),
        22px 28px 70px rgba(176, 165, 150, 0.18);
    background: #DED6C8;
}

.related-post-thumb,
.related-post-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.related-post-placeholder {
    background: linear-gradient(135deg, #9a8f7b 0%, #c9bead 50%, #dfd9cd 100%);
}

.related-post-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.8px, transparent 0.8px);
    background-size: 3px 3px;
    mix-blend-mode: soft-light;
    opacity: 0.36;
}

.related-post-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.9rem 1rem;
    background: linear-gradient(to top, rgba(16, 15, 13, 0.8), rgba(16, 15, 13, 0));
    z-index: 2;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.related-post-overlay-category {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(244, 241, 234, 0.88);
}

.related-post-overlay-title {
    margin-top: 0.35rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.08rem, 1.6vw, 1.3rem);
    line-height: 1.24;
    color: #F4F1EA;
}

.related-post-overlay-cta {
    margin-top: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #F4F1EA;
}

.related-post-image:hover .related-post-overlay,
.related-post-image:focus-visible .related-post-overlay {
    opacity: 1;
    transform: translateY(0);
}

.related-post-image:hover .related-post-thumb,
.related-post-image:focus-visible .related-post-thumb {
    transform: scale(1.03);
}

.related-view-all {
    margin-top: 2rem;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.84rem 2.2rem;
    border-radius: 999px;
    border: 2px solid #2D2D2D;
    background: #2D2D2D;
    color: #F4F1EA;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease;
}

.btn-view-all:hover {
    background: transparent;
    color: #2D2D2D;
}

@media (max-width: 1024px) {
    .single-hub-header {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .single-hub-header {
        padding-top: 1.6rem;
    }

    .single-hub-content,
    .single-hub-signoff,
    .single-hub-footer,
    .single-hub-related {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        gap: 0.55rem;
    }

    .share-btn {
        width: 40px;
        height: 40px;
    }
}
