/*!
 * Error messages of the website, design language 2.1, rule 6: the error line
 * under a control (partial _WebsiteErrorLine.cshtml) and the alert above a form
 * (partial _WebsiteAlert.cshtml). Both are a sentence in bold ink with the sign
 * of the dead end from the process map in front, a path with a cross bar
 * (partial _WebsiteDeadEnd.cshtml). The sign repeats what the sentence says; no
 * red, no colour as the only sign. Also the announcement after a failed check,
 * a sentence for screen readers only.
 */

.website-dead-end {
  position: relative;
  flex: none;
  width: 16px;
  height: 10px;
}

.website-error {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 0;
  font-size: var(--website-font-size-small);
  font-weight: var(--website-font-weight-bold);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.website-alert {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 32px;
  padding: 14px 16px;
  border: 2px solid var(--website-color-ink);
  border-radius: var(--website-radius);
  font-weight: var(--website-font-weight-bold);
}

.website-alert .website-dead-end {
  top: -1px;
}

/* The alert takes the focus when the page comes back (autofocus, tabindex -1).
   It is no control, so its own border is the sign and no ring is drawn around
   it; the keyboard continues from there into the form. */
.website .website-alert:focus {
  outline: none;
}

/* The announcement after a failed check: read by a screen reader, out of sight
   for everybody else, because the error lines under the fields already show
   what is wrong. Clipped and not display:none, which would hide it from the
   screen reader as well. */
.website-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
