/* Narrow compatibility rules only; the visual system lives in style.css. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.legacy-link-button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.header__profile:hover .legacy-profile-options,
.header__profile:focus-within .legacy-profile-options {
  display: block;
}

.legacy-messages {
  padding-top: 15px;
}

.legacy-message {
  margin-bottom: 10px;
  padding: 12px 16px;
  border: 1px solid #25b9b5;
  background: #fff;
  color: #333;
}

.legacy-message_error {
  border-color: #d74f4f;
}

.legacy-modal[hidden] {
  display: none;
}

.legacy-modal {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 60px 20px;
}

.legacy-modal__backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .65);
  cursor: default;
}

.legacy-modal__dialog {
  position: relative;
  width: 620px;
  min-height: 120px;
  padding: 35px;
  background: #fff;
  box-sizing: border-box;
}

.legacy-modal__close {
  position: absolute;
  top: 7px;
  right: 12px;
  z-index: 2;
  color: #333;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

body.legacy-modal-open {
  overflow: hidden;
}

.legacy-modal-loading {
  padding: 35px;
  text-align: center;
  color: #777;
}

.legacy-modal-error {
  color: #a21d1d;
}

button,
input[type="submit"] {
  cursor: pointer;
}

.news-important-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.news-important-form .important {
  margin: 0;
  background-color: transparent;
  font-family: inherit;
  cursor: pointer;
}

.news-important-form .important[disabled] {
  cursor: wait;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #25b9b5;
  outline-offset: 2px;
}
/* A source-image fallback must occupy the exact legacy thumbnail box. */
.avatar-circle .avatar-img {
  width: 107px;
  height: 107px;
  object-fit: cover;
  object-position: center top;
}
