:root {
  --app-button-font-weight: 400;
}

/*
 * Button typography is shared by every module. Keep functional hierarchy in
 * colour, size and placement; button labels always use the regular face.
 */
:root body button:not(#__montagka_button_weight_sentinel),
:root body input[type="button"]:not(#__montagka_button_weight_sentinel),
:root body input[type="submit"]:not(#__montagka_button_weight_sentinel),
:root body input[type="reset"]:not(#__montagka_button_weight_sentinel),
:root body [role="button"]:not(#__montagka_button_weight_sentinel),
:root body a[class*="button"]:not(#__montagka_button_weight_sentinel),
:root body label[class*="button"]:not(#__montagka_button_weight_sentinel),
:root body a[class*="btn"]:not(#__montagka_button_weight_sentinel),
:root body label[class*="btn"]:not(#__montagka_button_weight_sentinel) {
  font-weight: var(--app-button-font-weight) !important;
}

:root body button:not(#__montagka_button_weight_sentinel) strong,
:root body button:not(#__montagka_button_weight_sentinel) b,
:root body button:not(#__montagka_button_weight_sentinel) span:not([aria-hidden="true"]):not([class*="icon"]),
:root body [role="button"]:not(#__montagka_button_weight_sentinel) strong,
:root body [role="button"]:not(#__montagka_button_weight_sentinel) b,
:root body [role="button"]:not(#__montagka_button_weight_sentinel) span:not([aria-hidden="true"]):not([class*="icon"]),
:root body a[class*="button"]:not(#__montagka_button_weight_sentinel) strong,
:root body a[class*="button"]:not(#__montagka_button_weight_sentinel) b,
:root body a[class*="button"]:not(#__montagka_button_weight_sentinel) span:not([aria-hidden="true"]):not([class*="icon"]),
:root body label[class*="button"]:not(#__montagka_button_weight_sentinel) strong,
:root body label[class*="button"]:not(#__montagka_button_weight_sentinel) b,
:root body label[class*="button"]:not(#__montagka_button_weight_sentinel) span:not([aria-hidden="true"]):not([class*="icon"]),
:root body a[class*="btn"]:not(#__montagka_button_weight_sentinel) strong,
:root body a[class*="btn"]:not(#__montagka_button_weight_sentinel) b,
:root body a[class*="btn"]:not(#__montagka_button_weight_sentinel) span:not([aria-hidden="true"]):not([class*="icon"]),
:root body label[class*="btn"]:not(#__montagka_button_weight_sentinel) strong,
:root body label[class*="btn"]:not(#__montagka_button_weight_sentinel) b,
:root body label[class*="btn"]:not(#__montagka_button_weight_sentinel) span:not([aria-hidden="true"]):not([class*="icon"]) {
  font-weight: var(--app-button-font-weight) !important;
}

:root body input[type="file"]:not(#__montagka_button_weight_sentinel)::file-selector-button,
:root body input[type="file"]:not(#__montagka_button_weight_sentinel)::-webkit-file-upload-button {
  font-weight: var(--app-button-font-weight) !important;
}
