/*
 * The schedule block on an ordinary page (T-552).
 *
 * The public stylesheet is written for a page of this plugin's own: it holds
 * the wrap to the page's width with its gutters, and a theme retunes its
 * tokens on those routes (lempar's tournaments.css, which it loads there and
 * nowhere else). So here the block sits in the content's flow, and takes the
 * theme's own presets directly, each falling back to the plugin's default.
 * Asking lempar to load its file on any page holding the block was the other
 * way; this one also serves a theme that has no such file.
 */
.wpfb-tournaments-wrap.wpfb-tournaments-schedule-block {
	--wpfb-tournaments-brand: var(--wp--preset--color--accent, var(--wp--preset--color--accent-3, var(--wp--preset--color--vivid-cyan-blue)));
	--wpfb-tournaments-on-brand: var(--wp--preset--color--accent-contrast, var(--wp--preset--color--base, var(--wp--preset--color--white)));
	--wpfb-tournaments-tint: var(--wp--preset--color--surface, color-mix(in srgb, currentColor 4%, transparent));
	--wpfb-tournaments-line: var(--wp--preset--color--line, color-mix(in srgb, currentColor 12%, transparent));
	--wpfb-tournaments-muted: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 72%, transparent));
	--wpfb-tournaments-radius: var(--wp--custom--radius--card, 12px);
	--wpfb-tournaments-radius-sm: var(--wp--custom--radius--small, 6px);

	max-width: var(--wp--style--global--content-size, 100%);
	margin-block: var(--wp--style--block-gap, 1.5rem);
	padding: 0;
}

.wpfb-tournaments-wrap.wpfb-tournaments-schedule-block.alignwide {
	max-width: var(--wp--style--global--wide-size, 100%);
}

.wpfb-tournaments-wrap.wpfb-tournaments-schedule-block.alignfull {
	max-width: none;
}

/* As lempar draws these on its routes; :where() leaves a marked row its own. */
:where(.wpfb-tournaments-schedule-block) .wpfb-tournaments-game-row {
	background-color: var(--wp--preset--color--surface, transparent);
	box-shadow: var(--wp--preset--shadow--card, none);
}

.wpfb-tournaments-schedule-block__more {
	margin-block-start: var(--wp--preset--spacing--40, 1rem);
}
