/* ==========================================================================
 * PouchPick Homepage — Latest guides & stories editorial discovery rail
 * (NP.4I). Geometry + Homepage density ONLY: the cards themselves are the
 * committed NP.4 editorial card family (assets/css/editorial-cards.css,
 * enqueued as this file's dependency — never the hub/article layout
 * bundles); the rail chrome (arrows, wrap) is the locked generic Homepage
 * rail system (assets/css/home-page.css + home-page.js). Breakpoints
 * deliberately mirror the locked product-rail tiers (≤599 phone /
 * 600–1179 tablet / ≥1180 desktop; arrows ≥1025) — one rail system, only
 * the per-card width varies.
 * ======================================================================= */

.pp-home-editorial { scroll-margin-top: var(--pp-space-4); }

.pp-home-editorial-rail {
	display: flex;
	gap: var(--pp-space-4);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: var(--pp-space-2);
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 2px 0 4px;
}
.pp-home-editorial-rail::-webkit-scrollbar { display: none; }
.pp-home-editorial-rail > .pp-ed-card { flex: 0 0 300px; scroll-snap-align: start; }

/* Homepage density: a rail of mixed-length deks stays even — two lines,
   then the meta line anchors the card bottom. */
.pp-home-editorial-rail .pp-ed-card-dek {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* True phone: ~1.15 cards visible — the next article clearly peeks into
   view (the locked 87% phone card width, product-rail Z1 tier). */
@media (max-width: 599px) {
	.pp-home-editorial-rail { gap: var(--pp-space-3); scroll-padding-left: var(--pp-space-4); }
	.pp-home-editorial-rail > .pp-ed-card { flex: none; width: 87%; }
}

/* Tablet: a fixed card deliberately close to desktop's — wider viewports
   simply show more cards (the locked product-rail tablet tier). */
@media (min-width: 600px) and (max-width: 1179px) {
	.pp-home-editorial-rail { gap: var(--pp-space-3); scroll-padding-left: var(--pp-space-4); }
	.pp-home-editorial-rail > .pp-ed-card { flex: none; width: 300px; }
}
