/*!
 * Gravity Forms — USC Alumni styling
 *
 * Enqueued by Alumni\Assets\GravityFormsAssets only on singular views that
 * render a form, so none of this ships on pages without one.
 */

/* GF's orbital theme renders form text small and light, below the WCAG
   large-text tier. Lifting it there — 1.25rem/20px, bold (700) for labels and
   descriptions, which clears the 14pt-bold threshold — has to happen on the
   component-level size and weight tokens rather than the base --gf-font-size-*
   tokens, because the theme marks the secondary and tertiary base tokens
   !important and they can't be beaten without another !important. Input values
   stay medium (500) so a person's typed answers read a touch lighter than the
   bold prompts. The doubled class only out-specifies GF's single-class
   defaults. */
.gform_wrapper.gform-theme--framework {
  --gf-ctrl-font-size: 1.25rem;
  --gf-ctrl-label-font-size-primary: 1.25rem;
  --gf-ctrl-label-font-size-secondary: 1.25rem;
  --gf-ctrl-label-font-size-tertiary: 1.25rem;
  --gf-ctrl-label-font-size-quaternary: 1.25rem;
  --gf-ctrl-desc-font-size: 1.25rem;
  --gf-ctrl-btn-font-size-md: 1.25rem;
  --gf-ctrl-font-weight: 500;
  --gf-ctrl-label-font-weight-primary: 700;
  --gf-ctrl-label-font-weight-secondary: 700;
  --gf-ctrl-label-font-weight-tertiary: 700;
  --gf-ctrl-label-font-weight-quaternary: 700;
  --gf-ctrl-desc-font-weight: 700;
  --gf-ctrl-btn-font-weight: 700;
}

/* The primary buttons' cardinal fill, white text, and hover come from GF's
   default-styles filter (GravityFormsDefaultStyles) — GF pins button color in a
   per-form inline <style> at ID specificity that no stylesheet can beat. This
   only adds the site button's non-color finish: the cardinal gradient sheen,
   uppercase, and text-shadow. Loading after GF's sheets (the stylesheet
   dependency in GravityFormsAssets) lets these land without !important. The
   selector matches the specificity of GF's own guarded button rule so the
   text-transform wins on that source order; GF marks the button's letter-spacing
   and border !important, so those are left as-is. */
.gform_wrapper.gform-theme--framework .gform-theme-button.button:not(.gform-theme-button--secondary):not([disabled]) {
  background-image: linear-gradient(#8d0000, rgba(165, 1, 1, 0));
  text-shadow: 1px 1px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
}
