.posts-directory { padding-top: 8px; padding-bottom: 56px; }
.posts-tabs { display: flex; gap: 24px; border-bottom: 1px solid #e2e8f0; margin-bottom: 12px; }
.posts-tab { padding: 14px 2px; color: #64748b; text-decoration: none; border-bottom: 3px solid transparent; font-weight: 600; }
.posts-tab[aria-selected="true"] { color: #2563eb; border-bottom-color: #2563eb; }
.posts-tab:focus-visible, .blog-gallery a:focus-visible, .blog-gallery button:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }
.posts-list { list-style: none; margin: 0; padding: 0; }
.posts-list-item { padding: 25px 0; border-bottom: 1px solid #e2e8f0; overflow-wrap: anywhere; }
.posts-list-item time, .posts-date, .blog-header time { color: #64748b; font-size: .9rem; }
.posts-list-item h2 { font-size: 1.2rem; line-height: 1.55; margin: 8px 0; color: #0f172a; }
.posts-list-item h2 a { color: inherit; text-decoration: none; }
.posts-list-item h2 a:hover { color: #2563eb; }
.posts-source { color: #64748b; margin: 8px 0; }
.posts-external-url { color: #2563eb; font-size: .9rem; overflow-wrap: anywhere; }
.posts-empty { color: #64748b; padding: 28px 0; }
.posts-directory [hidden], .blog-article [hidden] { display: none !important; }
.blog-article { max-width: 900px; margin: 32px auto 60px; color: #334155; min-width: 0; }
.blog-back { display: inline-block; color: #2563eb; margin-bottom: 28px; text-decoration: none; }
.blog-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #0f172a; line-height: 1.25; margin: 14px 0 30px; overflow-wrap: anywhere; }
.blog-body { line-height: 1.85; font-size: 1.04rem; white-space: normal; overflow-wrap: anywhere; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 24px 0 0; margin: 32px 0 0; border-top: 1px solid #e2e8f0; }
.blog-tags li { background: #eff6ff; border: 1px solid #dbeafe; color: #334155; border-radius: 20px; padding: 7px 14px; font-size: .9rem; overflow-wrap: anywhere; }
.blog-gallery { margin: 0 0 30px; }
.blog-gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; border-radius: 14px; background: #f1f5f9; scrollbar-width: thin; }
.blog-gallery-slide { flex: 0 0 100%; width: 100%; min-width: 0; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; cursor: zoom-in; }
.blog-gallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.blog-gallery-controls { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 12px 0 0; color: #64748b; }
.blog-gallery-controls button { border: 1px solid #e2e8f0; background: white; border-radius: 8px; padding: 6px 15px; color: #2563eb; cursor: pointer; font: inherit; }
.blog-modal-open { overflow: hidden; }
.blog-lightbox { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #0f172a; color: white; overflow: hidden; }
.blog-lightbox::backdrop { background: #0f172a; }
.blog-lightbox-toolbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; box-sizing: border-box; }
.blog-lightbox button { color: white; background: #334155; border: 1px solid #64748b; border-radius: 8px; padding: 10px 16px; cursor: pointer; font: inherit; }
.blog-lightbox-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; height: calc(100% - 64px); padding: 12px 20px 24px; box-sizing: border-box; }
.blog-lightbox-stage img { grid-column: 2; max-width: 100%; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.blog-lightbox-stage [data-lightbox-prev] { grid-column: 1; grid-row: 1; }
.blog-lightbox-stage [data-lightbox-next] { grid-column: 3; grid-row: 1; }
@media (max-width: 600px) {
    .posts-tabs { gap: 20px; }
    .posts-list-item { padding: 20px 0; }
    .blog-article { margin-top: 20px; }
    .blog-gallery-slide { aspect-ratio: 4 / 3; }
    .blog-lightbox-toolbar { padding: 0 12px; }
    .blog-lightbox-stage { padding: 8px 6px 18px; gap: 4px; }
    .blog-lightbox-stage button { padding: 10px 8px; }
}
