/*
 * Site-wide fixes for the theme, loaded on the live site only.
 *
 * 1. FAQ: the theme forces Title Case On Every Word in its FAQ blocks
 *    (.faq-list). This shows the questions and answers as they're typed.
 */
.wp-site-blocks .faq-list summary,
.wp-site-blocks .faq-right .faq-list p {
	text-transform: none;
}

/*
 * 2. Phones only (below 640px): use the screen's full width.
 *
 * Several sections have their content width set to 80% in the editor
 * (Services, Testimonials, FAQ). On a 375px phone that wastes 10% on each
 * side. This lets that content run the full width. It also removes the extra
 * gutter the tile grid added, and turns off the theme's "..." cut-off on tile
 * text so whole sentences show.
 *
 * Checked on every main page on 2026-11-27: no page scrolls sideways, and
 * Lodge, Nest, Barn and Book are unchanged. Tablets and desktops are
 * unchanged.
 */

@media (max-width: 640px) {
	/* Content width: full width instead of 80% / 800px. */
	.wp-site-blocks .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
	.wp-site-blocks .is-layout-constrained > .alignwide {
		max-width: 100%;
	}

	/* The tile grid: one small gutter instead of two. */
	.wp-site-blocks > .wp-block-group.is-layout-constrained:has(> .hawk-tiles),
	.wp-site-blocks > main.wp-block-group:has(> .hawk-tiles) {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.wp-site-blocks .hawk-tiles {
		padding-left: 8px !important;
		padding-right: 8px !important;
	}

	/* The FAQ's navy panel keeps a little room around its text. */
	.wp-site-blocks .faq-section {
		padding-left: 12px !important;
		padding-right: 12px !important;
	}

	/* Show whole sentences in the theme's tiles (no "..."). */
	.wp-site-blocks main .wp-block-column > p {
		-webkit-line-clamp: unset !important;
		overflow: visible !important;
	}
}

/*
 * 3. Pages whose main area is a vertical stack (Weddings): the tile grid
 *    fills the width instead of shrinking to fit its content.
 */
.wp-site-blocks main.is-layout-flex > .hawk-tiles {
	align-self: stretch;
	width: 100%;
}

/*
 * 4. Phones: once the tile grid has the full width, the blocks after it
 *    (the Weddings estimator) keep the same small gutter as the tiles.
 */
@media (max-width: 640px) {
	.wp-site-blocks > main.wp-block-group:has(> .hawk-tiles) > :not(.hawk-tiles) {
		margin-left: 8px;
		margin-right: 8px;
	}
}
