/* Основные действия — тёмно-синий из логотипа; второстепенные — текстом. */
:root {
  --techdoc-button-bg: #213945;
  --button-bg: #213945;
  --button-hover-bg: #213945;
  --default-button-bg: #213945;
  --default-button-hover-bg: #213945;
  --close-button-bg: #213945;
  --close-button-hover-bg: #213945;
  --delete-button-bg: #213945;
  --delete-button-hover-bg: #213945;
}

body :is(button, input[type="submit"], input[type="button"], input[type="reset"],
  .button, .primary, .upload, .deletelink):not(.file-action):not(.textbtn):not(.back):not(.link-action) {
  background: var(--techdoc-button-bg) !important;
  color: #fff !important;
  border-color: var(--techdoc-button-bg);
}

body :is(button, input[type="submit"], input[type="button"], input[type="reset"],
  .button, .primary, .upload, .file-action, .textbtn, .back, .deletelink):disabled {
  opacity: .55;
  cursor: not-allowed;
}

body a:any-link:not(.brand):not(.button):not(.upload):not(.deletelink) {
  color: #171918;
}

body :is(.file-action, .textbtn, .back, .link-action) {
  background: transparent !important;
  color: #171918 !important;
  border: 0;
  padding: 7px 0;
  min-height: 44px;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

body :is(.file-action, .textbtn, .back, .link-action):hover {
  color: #213945 !important;
}

input[type="file"]::file-selector-button {
  background: var(--techdoc-button-bg);
  color: #fff;
  border: 0;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}
