/* Main discovery actions only. Keep the existing palette and button dimensions. */
body :is(
  .compact-home .search-primary > .primary,
  .compact-home .filter-actions > .primary,
  .compact-home .job-actions > .ref-source,
  .site-header .header-account .nav-button,
  .site-header .header-account a[href='/delodajalci']
) {
  --action-fill: #0054ef;
  --action-rgb: 0, 84, 239;
  --action-edge: #0054ef;
  background: linear-gradient(145deg, #ffffff12, #ffffff00 70%) var(--action-fill);
  box-shadow: inset 0 1px 0 #ffffff24, 0 3px 8px rgba(var(--action-rgb), .10);
  filter: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body .site-header .header-account a[href='/delodajalci'] {
  --action-fill: #e8f9f7;
  --action-rgb: 0, 130, 124;
  --action-edge: #65c9c3;
}

/* No sticky hover effect on touch screens; no change to surrounding layout. */
@media (hover: hover) and (pointer: fine) {
  body :is(
    .compact-home .search-primary > .primary,
    .compact-home .filter-actions > .primary,
    .compact-home .job-actions > .ref-source,
    .site-header .header-account .nav-button,
    .site-header .header-account a[href='/delodajalci']
  ):not(:disabled):not([aria-disabled='true']):hover {
    transform: translateY(-2px);
    border-color: var(--action-edge);
    box-shadow: inset 0 1px 0 #ffffff38, 0 7px 16px rgba(var(--action-rgb), .20);
  }
}

body :is(
  .compact-home .search-primary > .primary,
  .compact-home .filter-actions > .primary,
  .compact-home .job-actions > .ref-source,
  .site-header .header-account .nav-button,
  .site-header .header-account a[href='/delodajalci']
):not(:disabled):not([aria-disabled='true']):active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(var(--action-rgb), .18), 0 1px 3px rgba(var(--action-rgb), .10);
}

body :is(
  .compact-home .search-primary > .primary,
  .compact-home .filter-actions > .primary,
  .compact-home .job-actions > .ref-source,
  .site-header .header-account .nav-button,
  .site-header .header-account a[href='/delodajalci']
):focus-visible {
  outline: 3px solid #087cad;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  body :is(
    .compact-home .search-primary > .primary,
    .compact-home .filter-actions > .primary,
    .compact-home .job-actions > .ref-source,
    .site-header .header-account .nav-button,
    .site-header .header-account a[href='/delodajalci']
  ) {
    transition: none;
    transform: none !important;
  }
}

@media (forced-colors: active) {
  body :is(
    .compact-home .search-primary > .primary,
    .compact-home .filter-actions > .primary,
    .compact-home .job-actions > .ref-source,
    .site-header .header-account .nav-button,
    .site-header .header-account a[href='/delodajalci']
  ) {
    background: ButtonFace;
    color: ButtonText;
    border: 1px solid ButtonText !important;
    box-shadow: none !important;
    outline-color: Highlight;
  }
}
