/* Две существующие кнопки голосования в шапке главной страницы. */
header .rating238 .rating238-buttons > button {
  --vote-fill: #175e44;
  --vote-hover: #104d37;
  --vote-edge: #8ce2b9;
  --vote-mark: #a8f0cb;
  background: var(--vote-fill) !important;
  color: #fff !important;
  border: 1px solid var(--vote-edge) !important;
}

header .rating238 .rating238-buttons > button:has(svg.rating238-down) {
  --vote-fill: #883e3a;
  --vote-hover: #71322f;
  --vote-edge: #ffaba0;
  --vote-mark: #ffc4bb;
}

header .rating238 .rating238-buttons > button svg {
  color: var(--vote-mark) !important;
}

header .rating238 .rating238-buttons > button:not(:disabled):hover {
  background: var(--vote-hover) !important;
}

header .rating238 .rating238-buttons > button[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px #fff !important;
}

header .rating238 .rating238-buttons > button[aria-pressed="true"] svg path {
  fill: currentColor;
}

header .rating238 .rating238-buttons > button:disabled {
  background: #4c4548 !important;
  color: #f1e8e7 !important;
  border-style: dashed !important;
  opacity: 1 !important;
  cursor: default;
}

header .rating238 .rating238-buttons > button:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #142334 !important;
}

@media (forced-colors: active) {
  header .rating238 .rating238-buttons > button[aria-pressed="true"] {
    outline: 2px solid Highlight !important;
    outline-offset: -4px;
  }
  header .rating238 .rating238-buttons > button:focus-visible {
    outline: 2px solid Highlight !important;
    outline-offset: 2px;
  }
}
