/* Native feed arrows enhance scroll snap; swipe and keyboard scrolling still work. */
.esj-category-track { scrollbar-width: thin; scrollbar-color: #8a9a96 #edf2ef; overscroll-behavior-x: contain; }
.esj-category-track::-webkit-scrollbar { height: 6px; }
.esj-category-carousel .post-feed-nav { padding-bottom: 1rem; }
.esj-category-carousel .post-feed-nav li:first-child { margin-left: 0; }
.esj-category-carousel .post-feed-nav .disabled { visibility: hidden; }
/* Arrows sit half outside the cards: up to half their width (20px), but never
   beyond the page gutter minus 4px, so they cannot cause horizontal scrolling. */
.esj-category-carousel .post-feed-nav {
    --esj-arrow-shift: min(20px, max(0px, calc((100vw - 100%) / 2 - 4px)));
    left: calc(-1 * var(--esj-arrow-shift)); right: auto; width: calc(100% + 2 * var(--esj-arrow-shift));
}
.esj-category-carousel .post-feed-nav .ts-icon-btn { box-shadow: 0 2px 8px rgba(9, 25, 29, .18); }
section:has(> .esj-category-carousel), section:has(> div > .esj-category-carousel) { overflow-x: clip; }
[aria-labelledby="esj-categories-heading"] .esj-category-track { scrollbar-width: none; }
[aria-labelledby="esj-categories-heading"] .esj-category-track::-webkit-scrollbar { display: none; }
.esj-category-track:focus-visible { outline: 2px solid #214e43; outline-offset: 5px; }
.esj-category-slide { width: min(82vw, 20rem); }
.esj-category-image-card { min-height: 21rem; isolation: isolate; }
.esj-category-image-card:focus-visible { outline: 3px solid #a8dfc2; outline-offset: -5px; }
.esj-category-image-shade { background: linear-gradient(180deg, rgba(9,25,29,.02) 15%, rgba(9,25,29,.28) 42%, rgba(9,25,29,.96) 100%); }
.esj-category-hero-shade { background: linear-gradient(90deg, rgba(9,25,29,.90), rgba(9,25,29,.65) 55%, rgba(9,25,29,.25)); }
.esj-category-form { color-scheme: light; }
.esj-category-prose p { margin: 1rem 0; line-height: 1.8; }
.esj-category-prose a { text-decoration: underline; text-underline-offset: .2em; }
.esj-category-plan-slide { width: min(87vw, 23rem); }
@media (prefers-reduced-motion: reduce) { .esj-category-track { scroll-behavior: auto; } }
