/* Winter Supplies: listicle layout, 4 Dec 2026.
   File: wp-content/themes/winter-supplies/assets/css/listicle-layout-2026-12-04.css
   Loaded on single listicles only, after the theme's listicle styles (inc/site-fixes-2026-12-02.php).

   Every part of a guide (breadcrumb, title, intro, top-pick cards, comparison table, detailed reviews,
   content sections, FAQs, related guides) now uses ONE width: the same width as the header's content,
   with the site gutter on both sides. Before, only the cards were "wide" (edge to edge on big screens)
   and the text was a narrow column, and loose lists (the bullets under "How to choose") had no centring
   rule at all, so they sat against the left edge of the screen. */

.ws-listicle-single {
	--ws-lc-gutter: var(--ws-gutter, 24px);
	/* Change this one value to make every section wider or narrower. */
	--ws-lc-max: var(--ws-container, 1200px);
	--ws-lc-width: min(100% - (2 * var(--ws-lc-gutter)), var(--ws-lc-max) - (2 * var(--ws-lc-gutter)));
}
@media (max-width: 640px) {
	.ws-listicle-single { --ws-lc-gutter: 16px; }
}

/* Every top-level piece of the guide: same width, centred. */
main.ws-listicle-single > *,
main.ws-listicle-single > .alignwide,
main.ws-listicle-single > .alignfull {
	box-sizing: border-box;
	width: var(--ws-lc-width) !important;
	max-width: var(--ws-lc-width) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Lists, quotes and tables written in the text boxes line up with the paragraphs and headings. */
main.ws-listicle-single > ul,
main.ws-listicle-single > ol { padding-left: 1.4em; }
main.ws-listicle-single > ul li,
main.ws-listicle-single > ol li { margin-bottom: .4em; }
main.ws-listicle-single > blockquote { padding-left: 1em; }
main.ws-listicle-single > .wp-block-table,
main.ws-listicle-single > figure.wp-block-table { overflow-x: auto; }
main.ws-listicle-single > figure img,
main.ws-listicle-single > .wp-block-image img { max-width: 100%; height: auto; }

/* The cards no longer need their own wide rule: they are the same width as everything else. */
main.ws-listicle-single > .ws-listicle { padding-left: 0; padding-right: 0; }
