/*
 * Layout: page shell and containers.
 * Component-level styles live in components.css.
 */

.site {
	min-height: 100vh;
	overflow-x: clip; /* .alignfull uses 100vw, which includes the scrollbar width */
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1;
}

.container,
.content-area {
	width: min(100% - 2 * var(--wp--preset--spacing--30), var(--wp--style--global--wide-size, 1200px));
	margin-inline: auto;
}

.content-area {
	padding-block: var(--wp--preset--spacing--50);
}

/* Readable line length. Post/page content children are
 * constrained in blocks.css instead, so .alignwide/.alignfull can still break out. */
.content-area :where(.entry-header, .post-thumbnail, .entry-footer, .card, .no-results, .post-navigation, .pagination, .error-404) {
	width: 100%; /* auto margins would shrink grid items to their content */
	max-width: var(--wp--style--global--content-size, 720px);
	margin-inline: auto;
}

/* Full-width page section (ročník page, front page): side padding as on the boards. */
.sec {
	padding: 48px max(4vw, 16px);

	@media (max-width: 760px) {
		padding: 32px 16px;
	}
}

/* Page template O združení (page-o-zdruzeni.php): content | people; one column without people. */
.about-page {
	max-width: calc(var(--wp--style--global--wide-size, 1240px) + 2 * max(4vw, 16px));
	margin-inline: auto;

	.entry-content > * {
		max-width: none;
	}

	.entry-content > :first-child {
		margin-block-start: 0;
	}

	/* Column headings as on the board (.h3, 30 px), same as people__title. */
	.entry-content h2 {
		font-size: 30px;
		margin-block-end: 18px;
	}
}

.about-page--two {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px;

	@media (max-width: 760px) {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

/* Single column: readable line length. */
.about-page:not(.about-page--two) .about-page__content {
	max-width: var(--wp--style--global--content-size, 720px);
	margin-inline: auto;
}

/* Archív plesov (archive-rocnik.php): grid of archive-tile, note under it. */
.rocnik-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rocnik-archive__note {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--wp--custom--color--muted);
}
