/*
 * WordPress-only adjustments.
 *
 * The approved stylesheet is kept byte-identical to the signed-off build, so
 * anything that exists purely because this is WordPress lives here instead.
 */

/*
 * The header is `position: fixed; inset: 0 0 auto 0`, and the admin bar is
 * fixed over the same strip — so for logged-in users the logo is clipped.
 * Offset only while the bar is actually fixed: below 600px WordPress makes it
 * `position: absolute` and it scrolls away, so an offset there would leave a
 * permanent gap.
 */
body.admin-bar .site-header,
body.admin-bar .mobile-menu {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header,
	body.admin-bar .mobile-menu {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	body.admin-bar .site-header,
	body.admin-bar .mobile-menu {
		top: 0;
	}
}

/* wp_nav_menu prints <li> wrappers the static build did not have. */
.nav__links li,
.footer-col li,
.footer-bottom .legal li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav__links ul,
.footer-col ul,
.footer-bottom .legal ul {
	display: contents;
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * Message textarea height.
 *
 * `min-height: 132px` in the approved stylesheet lets the box grow with the
 * placeholder; this pins it. Set on the same `.gravity-theme` selector the
 * plugin actually outputs, and `height` is used rather than `min-height` so it
 * wins over that earlier rule without needing !important.
 */
.gform_wrapper.gravity-theme .gfield textarea.large {
	height: 150px;
}

/*
 * Validation reads as plain red text, never a box.
 *
 * Gravity Forms paints a white-red panel around each field message. It fights
 * the dark form card and reads as an error state of the page rather than of the
 * field. The colour is left to the plugin; only the box is removed.
 */
.gform_wrapper.gravity-theme .gfield_validation_message,
.gform_wrapper.gravity-theme .validation_message {
	margin-block-start: 6px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	font-size: 0.84rem;
}
