/**
 * File block — unlock size + decoration.
 *
 * Core: .wp-block-file { font-size: 0.8em }.
 * Editor wraps the name <a> in .wp-block-file__content-wrapper and sets
 * display:inline-block — parent text-decoration does not paint through.
 * Put decoration on the <a> itself so canvas matches the public page.
 */

.wp-block-file:not(.wp-element-button) {
  font-size: 1em;
}

.wp-block-file a:not(.wp-block-file__button) {
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.wp-block-file[style*="text-decoration:none"] a:not(.wp-block-file__button),
.wp-block-file[style*="text-decoration: none"] a:not(.wp-block-file__button) {
  text-decoration: none;
}

.wp-block-file[style*="line-through"] a:not(.wp-block-file__button) {
  text-decoration: line-through;
}

.wp-block-file .wp-block-file__button {
  font-size: 0.875rem;
  text-decoration: none;
}
