/*
 * Gravity Forms, brought onto the brand.
 *
 * The baseline for a form on a light background. Colours that Gravity Forms
 * derives whole ramps from are set in inc/forms.php, through its own style
 * settings, because it darkens and lightens them arithmetically and needs
 * literal hex. Everything reachable as a variable is set here.
 *
 * Variables rather than rule overrides: Gravity Forms' own rules read these, so
 * its focus, error, and checked states keep working instead of being fought.
 *
 * Doubled class because the plugin declares its defaults on a single class, and
 * a tie would be settled by whichever stylesheet the page happened to load
 * last. .gform-theme is the right second class rather than an arbitrary one:
 * these variables only exist in the framework stylesheet it marks, so where it
 * is absent there is nothing here to override anyway.
 */

.gform_wrapper.gform-theme {
	/*
	 * One variable feeds labels, controls, and buttons, so it replaces a
	 * font-family override on each. Gravity Forms ships it as `initial`
	 * precisely so a theme can fill it in.
	 */

	--gf-font-family-base: var(--sk-font-body);

	/*
	 * The Adobe kit has 400 and 700 and nothing between. Gravity Forms asks for
	 * 500 on labels and buttons, which the browser can only fake, leaving form
	 * type looking unlike every other bold word on the page.
	 */

	--gf-font-weight-secondary: 700;
	--gf-ctrl-btn-font-weight: 700;

	/* Bring the submit button to the same setting as .button elsewhere. */
	--gf-ctrl-btn-text-transform: uppercase;
	--gf-ctrl-btn-letter-spacing: 0.08em;

	/*
	 * Aimed at the -lg step rather than at --gf-ctrl-btn-font-size directly.
	 * Gravity Forms sets that one in the per-form stylesheet it scopes with an
	 * ID, to var(--gf-ctrl-btn-font-size-lg) because inc/forms.php asks for
	 * large controls, and no theme selector outranks an ID. Redefining what it
	 * points at gets there anyway.
	 */

	--gf-ctrl-btn-font-size-lg: 0.8125rem;
	--gf-ctrl-btn-padding-x-lg: 1.75rem;

	font-family: var(--sk-font-body);
}

/*
 * Every label already carries "(Required)" in full, so the key in the corner
 * explains a convention the form has just stated field by field.
 */

.gform_wrapper .gform_required_legend {
	display: none;
}
