/*
Theme Name: Awardify MacChess
Template: awardify
Description: Child theme of Awardify for macchess.org. It holds site CSS only, so Awardify updates still apply.
Version: 1.9
Requires at least: 6.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: awardify-macchess
*/

/* Front page hero: the button row is capped at 700px by the constrained layout, so a third button wraps. Let it use the hero width and keep one line on desktop. */
body.home .wp-block-cover .wp-block-buttons {
	max-width: none;
}
@media (min-width: 782px) {
	body.home .wp-block-cover .wp-block-buttons {
		flex-wrap: nowrap;
	}
}

/* Events page: trim the blank space above the calendar search bar, and style an optional call-to-action group (add the class macchess-cta to a Group block). */
.tec-block__archive-events .tribe-common.tribe-events .tribe-events-l-container {
	padding-top: 0;
}
.macchess-cta {
	margin-top: 1rem;
	margin-bottom: 0;
}

/* [ryochess_next_tournament]: underline the link in the text format (the span holds the {link} anchor) and in the link format. The button format keeps the button style. */
span.ryochess-next-tournament a,
a.ryochess-next-tournament {
	text-decoration: underline;
	border-bottom: 0;
}

/* Underline links in event content (Awardify sets text-decoration: none on links). */
body.single-tribe_events .tribe-events-content a:not(.wp-block-button__link):not([class*="tribe-"]),
body.single-tribe_events .wp-block-post-content a:not(.wp-block-button__link):not([class*="tribe-"]) {
	text-decoration: underline;
	/* The Events Calendar already draws a 1px border-bottom on these links. Drop it so only one underline prints. */
	border-bottom: 0;
}
