/**
 * Styles for the News Redirect Link block
 */

.wp-block-news-redirect-link {
  display: inline-block;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.wp-block-news-redirect-link:hover {
  text-decoration: underline;
}

/* External link styling */
.wp-block-news-redirect-link[target="_blank"] {
  position: relative;
}

/* Screen reader text */
.wp-block-news-redirect-link .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Editor styling */
.block-editor-block-list__block[data-type="custom-blocks/news-redirect-link"] .components-placeholder {
  min-height: 100px;
  padding: 16px;
}

.block-editor-block-list__block[data-type="custom-blocks/news-redirect-link"] .components-placeholder__instructions {
  margin-bottom: 16px;
}

.block-editor-block-list__block[data-type="custom-blocks/news-redirect-link"] .components-base-control {
  margin-bottom: 16px;
}