/* 4N-XStore shared post card */
.le-post { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--le-radius); background: #fff; transition: box-shadow .3s, transform .3s var(--le-ease); }
.le-post__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16/10; border-radius: var(--le-radius); background: var(--le-soft); }
.le-post__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--le-ease); }
.le-post:hover .le-post__media img { transform: scale(1.05); }
.le-post__date-badge { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 6px 8px; border-radius: var(--le-radius); background: #fff; color: var(--le-dark); font-size: 11px; font-weight: 600; text-transform: uppercase; line-height: 1.2; }
.le-post__date-badge b { font-size: 20px; }
.le-post__body { display: flex; flex: 1; flex-direction: column; padding: 18px 2px 4px; }
.le-post__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; color: var(--le-muted); font-size: 13px; }
.le-post__cat { color: var(--le-accent); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.le-post__title { margin: 0 0 10px; font-size: 19px; font-weight: 700; line-height: 1.35; }
.le-post__title a { color: var(--le-dark); text-decoration: none; }
.le-post__title a:hover { color: var(--le-accent); }
.le-post__excerpt { margin: 0 0 14px; color: var(--le-text); font-size: 15px; line-height: 1.6; }
.le-post__more { margin-top: auto; color: var(--le-dark); font-size: 14px; font-weight: 600; text-decoration: none; }
.le-post__more:hover { color: var(--le-accent); }
.le-post--overlay { position: relative; }
.le-post--overlay .le-post__media { aspect-ratio: 3/4; height: 100%; }
.le-post--overlay .le-post__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.75)); }
.le-post--overlay .le-post__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; pointer-events: none; }
.le-post--overlay .le-post__body a { pointer-events: auto; }
.le-post--overlay .le-post__title a, .le-post--overlay .le-post__more, .le-post--overlay .le-post__meta { color: #fff; }
.le-post--list { flex-direction: row; gap: 18px; align-items: center; background: none; }
.le-post--list .le-post__media { flex: 0 0 38%; aspect-ratio: 4/3; }
.le-post--list .le-post__body { padding: 0; }
.le-post.no-image .le-post__body { padding-top: 0; }
.le-post--boxed { border: 1px solid var(--le-line); }
.le-post--boxed .le-post__media { border-radius: 0; }
.le-post--boxed .le-post__body { padding: 20px 22px 24px; }
.le-post--minimal { padding: 22px 0; border-bottom: 1px solid var(--le-line); border-radius: 0; background: none; }
.le-post--minimal .le-post__media { display: none; }
.le-post--minimal .le-post__body { padding: 0; }
.le-post--overlay.no-image .le-post__media { background: var(--le-dark); }
@media (max-width: 767px) { .le-post--list { flex-direction: column; align-items: stretch; } .le-post--list .le-post__media { flex: none; } }
@media (prefers-reduced-motion: reduce) { .le-post__media img { transition: none !important; } }

/* Chess layout */
.n4x-chess { --n4x-chess-img: 50%; display: flex; flex-direction: column; gap: var(--le-gap, 40px); }
.n4x-chess .n4x-chess__row { align-items: center; gap: 48px; }
.n4x-chess .n4x-chess__row .le-post__media { flex: 0 0 var(--n4x-chess-img); aspect-ratio: 4/3; }
.n4x-chess .n4x-chess__row:nth-child(even) { flex-direction: row-reverse; }
.n4x-chess--right .n4x-chess__row:nth-child(odd) { flex-direction: row-reverse; }
.n4x-chess--right .n4x-chess__row:nth-child(even) { flex-direction: row; }
.n4x-chess .le-post__title { font-size: clamp(20px, 2.2vw, 28px); }
@media (max-width: 767px) { .n4x-chess .n4x-chess__row, .n4x-chess .n4x-chess__row:nth-child(even) { flex-direction: column !important; gap: 18px; } }

/* Timeline layout */
.n4x-ptl { --n4x-tl-line: var(--le-line); --n4x-tl-dot: var(--le-accent); position: relative; display: flex; flex-direction: column; gap: 36px; padding: 10px 0; }
.n4x-ptl::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--n4x-tl-line); transform: translateX(-50%); }
.n4x-ptl__item { position: relative; width: calc(50% - 40px); }
.n4x-ptl--alternate .n4x-ptl__item:nth-child(even) { align-self: flex-end; }
.n4x-ptl__dot { position: absolute; top: 24px; right: -47px; width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; background: var(--n4x-tl-dot); box-shadow: 0 0 0 2px var(--n4x-tl-dot); }
.n4x-ptl--alternate .n4x-ptl__item:nth-child(even) .n4x-ptl__dot { right: auto; left: -47px; }
.n4x-ptl__date { display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 20px; background: var(--le-soft); color: var(--le-dark); font-size: 13px; font-weight: 700; }
.n4x-ptl--right::before { left: 7px; }
.n4x-ptl--right .n4x-ptl__item { width: auto; margin-left: 44px; }
.n4x-ptl--right .n4x-ptl__dot { right: auto; left: -44px; }
@media (max-width: 767px) {
	.n4x-ptl::before { left: 7px; }
	.n4x-ptl__item, .n4x-ptl--alternate .n4x-ptl__item:nth-child(even) { width: auto; margin-left: 44px; align-self: stretch; }
	.n4x-ptl__dot, .n4x-ptl--alternate .n4x-ptl__item:nth-child(even) .n4x-ptl__dot { right: auto; left: -44px; }
}

/* Filter buttons */
.n4x-pfilter { --n4x-tab-accent: var(--le-accent); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.n4x-pfilter button:not(.n4x-z):not(.n4x-z):not(div) { padding: 8px 18px; border: 1px solid var(--le-line); border-radius: 30px; background: #fff; color: var(--le-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.n4x-pfilter button:hover:not(.n4x-z):not(div) { color: var(--le-dark); border-color: var(--le-dark); }
.n4x-pfilter button.is-active:not(.n4x-z):not(div) { border-color: var(--n4x-tab-accent); background: var(--n4x-tab-accent); color: #fff; }
.le-post.is-filtered-out, .n4x-ptl__item.is-filtered-out { display: none; }
