/* Pointer feedback changes the printed surface only. Existing card edges,
   map coordinates and hit areas stay fixed while moving between controls. */
:is(#content, .sitefoot) :is(
  a[href], button, select, [role="button"], details > summary,
  input:is([type="button"], [type="submit"], [type="reset"], [type="image"])
):not(:disabled, [aria-disabled="true"]) {
  cursor: pointer;

  @media (any-hover: hover) {
    &:hover {
      background-color: var(--action-hover, #deeee6);
      color: var(--action-ink, #203e32);
    }
  }
  &:active {
    background-color: var(--action-press, #c7e1cc);
    color: var(--action-ink, #203e32);
  }
  @media (forced-colors: active) {
    --action-hover: Highlight;
    --action-press: Highlight;
    --action-ink: HighlightText;

    @media (any-hover: hover) {
      &:hover { forced-color-adjust: none; }
    }
    &:active { forced-color-adjust: none; }
  }
}

:is(.solid-btn, .pt-button, .ks-primary, .xp-primary, .appAction.primary,
  .field-search button, .search-controls button, .vc-filters button:not(.vc-clear),
  .sponsor-routes a:first-child, .sm-zoom) {
  --action-hover: #0d422d;
  --action-press: #093422;
  --action-ink: #fff;
}

:is(.vc-tabs, .ks-nav, .xp-nav nav, .pt-tabs, .ex-sidebar nav) a[aria-current="page"],
.sm-views button[aria-pressed="true"], .xn-switch button[aria-pressed="true"] {
  --action-hover: #513557;
  --action-press: #432a4d;
  --action-ink: #fff;
}

.sm-pick-item[aria-pressed="true"],
.cover-actions .text-link, .sponsor-routes a:nth-child(2), .street-social {
  --action-hover: #ffe398;
  --action-press: #f2c76b;
  --action-ink: #382713;
}

.rs-view[aria-pressed="true"] {
  --action-hover: #e8b750;
  --action-press: #d9a340;
  --action-ink: #382713;
}

.sitefoot a:not(.street-social) {
  --action-hover: #493653;
  --action-press: #554060;
  --action-ink: #ffe693;
}

.sm-pin {
  --action-hover: rgb(255 191 44 / 58%);
  --action-press: rgb(253 171 33 / 64%);
}
.sm-widget[data-edition="RG34"][data-view="near"] .sm-pin {
  --action-hover: #ffdf67;
  --action-press: #f2c76b;
  --action-ink: #382713;
}

.sp-pitch .sp-options a {
  --action-hover: #efcf7f;
  --action-press: #e7c06a;
}
.sp-pitch .sp-options a:nth-child(2) {
  --action-hover: #b8dfce;
  --action-press: #9fceb9;
}
.sp-pitch .sp-options a:nth-child(3) {
  --action-hover: #d9c9e8;
  --action-press: #c9b8db;
}

@media (any-hover: hover) {
  :is(.sp-options label, .pt-check, .pt-days label):has(input:enabled):hover {
    cursor: pointer;
    background-color: #deeee6;
    color: #203e32;
  }
  .sp-options label:has(input:checked):hover { background-color: #f0cc79; }
  input:is([type="checkbox"], [type="radio"]):enabled:hover {
    accent-color: #14563a;
    cursor: pointer;
  }
  input[type="file"]:enabled:hover::file-selector-button {
    background-color: #d5ead8;
    color: #143f30;
    cursor: pointer;
  }
}

input[type="file"]:enabled:active::file-selector-button {
  background-color: #c7e1cc;
  color: #203e32;
}
input[type="file"]:enabled:focus-visible::file-selector-button {
  outline: 2px solid #326447;
  outline-offset: -2px;
}

#content :is(button, input[type="button"], input[type="submit"], input[type="reset"],
  [role="button"], a):is(:disabled, [aria-disabled="true"]) {
  background: #eceae3;
  border-color: #c7c4ba;
  color: #635f58;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

@media (forced-colors: active) {
  .street-social:is(:hover, :active) .social-icon { background: HighlightText; }
}
