/* F02 width — full width for overview pages, reading column for articles.
   Selectors start with body so they beat GeneratePress' own (body .grid-container {max-width:1920px}) without !important. */

/* the page box: no maximum width, no white sheet, our side margin */
body .site.grid-container { max-width: none; padding-left: var(--ap-side); padding-right: var(--ap-side); }
body.one-container .container { background-color: transparent; }
body.one-container .site-content { padding: var(--ap-gap-sm) 0 var(--ap-gap); }
body .site-main { margin: 0; }

/* overview pages: archive, search, posts page — a grid of cards that adds columns on wide screens */
body.archive .site-main,
body.search .site-main,
body.blog .site-main {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: calc(var(--ap-gap) - 8px);
	align-items: stretch;
}
body.archive .site-main > :not(article),
body.search .site-main > :not(article),
body.blog .site-main > :not(article) { grid-column: 1 / -1; }
body.archive .site-main > article,
body.search .site-main > article,
body.blog .site-main > article { margin: 0; }
body.archive .inside-article,
body.search .inside-article,
body.blog .inside-article {
	height: 100%;
	padding: 20px 22px 24px;
	background-color: var(--ap-card);
	border-radius: var(--ap-radius);
	box-shadow: var(--ap-shadow-card);
}

/* a single article and plain pages (not the front page): reading column of ~70 characters, centred */
body.single .site-main,
body.page:not(.home) .site-main { max-width: var(--ap-reading); margin-left: auto; margin-right: auto; }
body.single .inside-article,
body.page:not(.home) .inside-article {
	padding: var(--ap-gap) var(--ap-gap-sm);
	background-color: var(--ap-card);
	border-radius: var(--ap-radius);
	box-shadow: var(--ap-shadow-card);
}
