.posts-page { padding: 14rem 5% 8rem; }
.posts-intro { text-align: center; margin: 0 auto 3.5rem; }
.posts-eyebrow { color: var(--main-color); font-size: 1.3rem; font-weight: 700; }
.posts-intro .page-title { margin: 1rem 0 2rem; }
.posts-intro > p { font-size: 1.6rem; color: var(--text-light); }
.posts-order { display: inline-block; margin-top: 1.5rem; padding: .5rem 1.6rem; border: 1px solid #cbe3ef; border-radius: 3rem; color: var(--main-dark); font-size: 1.2rem; background: var(--snd-bg-color); }
.posts-feed { max-width: 82rem; margin-inline: auto; display: grid; gap: 3rem; }
.post-card { min-width: 0; background: #fff; border: 1px solid #dce6ed; border-radius: 2rem; overflow: hidden; box-shadow: 0 8px 30px rgba(14, 42, 69, .05); scroll-margin-top: 11rem; }
.post-header { display: flex; align-items: center; gap: 1.2rem; padding: 2rem 3rem; border-bottom: 1px solid #edf1f5; }
.post-header img { border-radius: 12px; flex-shrink: 0; }
.post-author { color: var(--navy); font-size: 1.4rem; font-weight: 700; }
.post-source { font-size: 1.2rem; color: var(--text-light); margin-top: .3rem; }
.post-permalink { margin-inline-start: auto; color: var(--main-dark); font-size: 1.3rem; padding: .8rem; }
.post-content { padding: 2.5rem 3rem 3rem; font-size: 1.5rem; line-height: 2.2; overflow-wrap: anywhere; }
.post-content h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); color: var(--navy); margin-bottom: 2rem; }
.post-content p { white-space: pre-line; margin-bottom: 2rem; }
.post-content p:last-child { margin-bottom: 0; }
.post-content a { color: var(--main-dark); text-decoration: underline; text-underline-offset: .3rem; }
.post-text-details > summary { display: block; cursor: pointer; list-style: none; }
.post-text-details > summary::-webkit-details-marker { display: none; }
.post-text-preview { display: block; white-space: pre-line; }
.post-read-more { display: block; margin-top: 1rem; padding: .4rem 0; color: var(--main-dark); font-weight: 700; }
.post-collapse-label { display: none; }
.post-text-details[open] .post-text-preview,
.post-text-details[open] .post-expand-label { display: none; }
.post-text-details[open] .post-collapse-label { display: block; margin-top: 0; margin-bottom: 1rem; }
.post-text-details > summary:hover .post-read-more { text-decoration: underline; }
.post-text-details > summary:focus-visible { outline: 3px solid var(--main-color); outline-offset: 3px; }
.post-image-link { display: block; background: var(--navy-dark); }
.post-image { display: block; width: 100%; height: auto; }
.post-card > .post-image-link { position: relative; aspect-ratio: 1 / 1; }
.post-card > .post-image-link > .post-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.post-video-wrapper { background: var(--navy-dark); }
.post-video { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #000; }
.post-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; padding: 0 2rem 2rem; }
.post-gallery figure { min-width: 0; }
.post-gallery figcaption { padding: 1rem .5rem; color: var(--navy); font-size: 1.2rem; text-align: center; }
.posts-page a:focus-visible { outline: 3px solid var(--main-color); outline-offset: -3px; }
.posts-empty { text-align: center; font-size: 1.6rem; }
.posts-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 3rem; }
.posts-pagination a { padding: 1rem 2rem; border: 1px solid var(--main-color); border-radius: 1rem; color: var(--main-dark); background: #fff; font-size: 1.4rem; }
.posts-pagination a:hover { background: var(--snd-bg-color); }
@media (max-width: 600px) {
    .post-gallery { grid-template-columns: 1fr; padding-inline: 1.6rem; }
    .posts-page { padding: 11rem 4% 5rem; }
    .posts-intro { margin-bottom: 2.5rem; }
    .post-card { border-radius: 1.4rem; }
    .post-header { padding: 1.5rem; gap: 1rem; }
    .post-author { font-size: 1.2rem; }
    .post-content { padding: 2rem 1.6rem; font-size: 1.4rem; }
}
