/* ============================================================
   25-series-index.css — two layouts for the series index
   ------------------------------------------------------------
   Ricky 2026-11-19: "Home page displays series in a grid/cards,
   series page displays them in a list one per row." The home
   cards get "square icons, smaller, no short descriptions";
   /series/ is "a more robust list with short descriptions".

   One shortcode, two layout classes, so the two cannot drift:
   [fb_series_index]                -> .fb-series-grid
   [fb_series_index layout="list"]  -> .fb-series-list

   15-home.css built the original cards at 16:9 for both. Those
   rules still apply to .fb-series-index, so this file overrides
   only what differs per layout.
   ============================================================ */

/* ---- home: smaller cards, square art, no description -------------- */

.fb-series-grid {
	grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
	gap: 14px;
}

/* Square, per Ricky. The source art is 427x427, so 1:1 is also the
   aspect ratio the images were made at — the old 16:9 crop was cutting
   the top and bottom off every one of them. */
.fb-series-grid .fb-series-card-art {
	aspect-ratio: 1 / 1;
}

.fb-series-grid .fb-series-card-body {
	padding: 10px 12px 12px;
	gap: 3px;
}
.fb-series-grid .ppe-series-name {
	font-size: .88rem;
	line-height: 1.25;
}
.fb-series-grid .ppe-series-count {
	font-size: .74rem;
}
/* Belt and braces: the grid layout does not render a description at all,
   but if one is ever emitted here it must not appear. */
.fb-series-grid .fb-series-card-desc {
	display: none;
}

/* ---- /series/: one per row, art left, text right ------------------ */

.fb-series-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.fb-series-list .ppe-series-card {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	align-items: stretch;
	gap: 0;
	overflow: hidden;
}
.fb-series-list .fb-series-card-art {
	aspect-ratio: 1 / 1;
	width: 104px;
	height: 104px;
	border-bottom: 0;
	border-right: 1px solid var(--awb-color3);
}
.fb-series-list .fb-series-card-body {
	justify-content: center;
	gap: 5px;
	padding: 14px 18px;
}
.fb-series-list .ppe-series-name {
	font-size: 1.05rem;
}
.fb-series-list .fb-series-card-desc {
	display: block;
	margin-top: 2px;
	color: var(--awb-color6);
	font-size: .88rem;
	line-height: 1.5;
}

/* The row is the same height whether or not a description exists, so a
   series without one does not collapse to a thin strip beside its
   neighbours. ⚠ As of 2026-11-19 none of the 13 has a description. */
.fb-series-list .ppe-series-card {
	min-height: 104px;
}

@media (max-width: 560px) {
	.fb-series-list .ppe-series-card {
		grid-template-columns: 76px minmax(0, 1fr);
	}
	.fb-series-list .fb-series-card-art {
		width: 76px;
		height: 76px;
	}
	.fb-series-list .fb-series-card-body {
		padding: 10px 14px;
	}
}
